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