From 4cb8ea75332902ad53f6d57819acecdb1ad406cc Mon Sep 17 00:00:00 2001 From: "pavlov%netscape.com" Date: Fri, 4 Feb 2000 23:14:38 +0000 Subject: [PATCH] aww, I fixed my favorite bug. The "interesting" toolbar contest is now over. (bug 20496) r=mcafee,large_penguin git-svn-id: svn://10.0.0.236/trunk@59806 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSRendering.cpp | 6 +++++- mozilla/layout/html/style/src/nsCSSRendering.cpp | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsCSSRendering.cpp b/mozilla/layout/base/nsCSSRendering.cpp index 3d152eb2010..ba09a700f5c 100644 --- a/mozilla/layout/base/nsCSSRendering.cpp +++ b/mozilla/layout/base/nsCSSRendering.cpp @@ -2185,7 +2185,11 @@ PRInt16 borderRadii[4],i; theTransform->SetToIdentity(); theTransform->AddScale(app2dev, app2dev); - //aRenderingContext.SetClipRect(srcRect, nsClipCombine_kReplace, clip); + // XXX this #ifdef needs to go away when we are sure that this works on windows and mac +#ifdef XP_UNIX + srcRect.SetRect(0,0,tvrect.width,tvrect.height); + aRenderingContext.SetClipRect(srcRect, nsClipCombine_kReplace, clip); +#endif // copy the initial image to our buffer, this takes twips and converts to pixels.. // which is what the image is in diff --git a/mozilla/layout/html/style/src/nsCSSRendering.cpp b/mozilla/layout/html/style/src/nsCSSRendering.cpp index 3d152eb2010..ba09a700f5c 100644 --- a/mozilla/layout/html/style/src/nsCSSRendering.cpp +++ b/mozilla/layout/html/style/src/nsCSSRendering.cpp @@ -2185,7 +2185,11 @@ PRInt16 borderRadii[4],i; theTransform->SetToIdentity(); theTransform->AddScale(app2dev, app2dev); - //aRenderingContext.SetClipRect(srcRect, nsClipCombine_kReplace, clip); + // XXX this #ifdef needs to go away when we are sure that this works on windows and mac +#ifdef XP_UNIX + srcRect.SetRect(0,0,tvrect.width,tvrect.height); + aRenderingContext.SetClipRect(srcRect, nsClipCombine_kReplace, clip); +#endif // copy the initial image to our buffer, this takes twips and converts to pixels.. // which is what the image is in