From 1bc77a488ac2ee5ef0370c2c896f513d36233a96 Mon Sep 17 00:00:00 2001 From: "dcone%netscape.com" Date: Tue, 27 Jul 1999 06:41:34 +0000 Subject: [PATCH] Fixed background rendering git-svn-id: svn://10.0.0.236/trunk@41258 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSRendering.cpp | 14 ++++++++------ mozilla/layout/html/style/src/nsCSSRendering.cpp | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/mozilla/layout/base/nsCSSRendering.cpp b/mozilla/layout/base/nsCSSRendering.cpp index 0fcc9890be9..e5791858b4f 100644 --- a/mozilla/layout/base/nsCSSRendering.cpp +++ b/mozilla/layout/base/nsCSSRendering.cpp @@ -1990,6 +1990,7 @@ nsCSSRendering::PaintBackground(nsIPresContext& aPresContext, } } +#ifdef NOTNOW nsDrawingSurface theSurface; nsRect srcRect,destRect; PRInt32 x,y; @@ -2004,11 +2005,6 @@ nsCSSRendering::PaintBackground(nsIPresContext& aPresContext, // XXX pushing state to fix clipping problem, need to look into why the clip is set here aRenderingContext.PushState(); PRBool clip; - //nsRect clipRect; - //clipRect = srcRect; - //clipRect.width = x1-x0; - //clipRect.height = y1-y0; - //aRenderingContext.SetClipRect(clipRect, nsClipCombine_kReplace, clip); aRenderingContext.SetClipRect(aBorderArea, nsClipCombine_kReplace, clip); // copy the initial image to our buffer @@ -2045,8 +2041,14 @@ nsCSSRendering::PaintBackground(nsIPresContext& aPresContext, aRenderingContext.CopyOffScreenBits(theSurface,srcRect.x,srcRect.y,destRect,flag); } } +#endif - + nscoord x,y; + for(y=y0;y