From 463438b1e1bf5416aecd7de6feaa3ae87bb8c79d Mon Sep 17 00:00:00 2001 From: "dcone%netscape.com" Date: Mon, 29 Jul 2002 17:48:22 +0000 Subject: [PATCH] Backing out changes. Something is interacting wrong with scroll bars.. so I will investigate. git-svn-id: svn://10.0.0.236/trunk@125996 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSRendering.cpp | 9 +++++---- mozilla/layout/html/style/src/nsCSSRendering.cpp | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/mozilla/layout/base/nsCSSRendering.cpp b/mozilla/layout/base/nsCSSRendering.cpp index da1afba7e71..7b26aaaef87 100644 --- a/mozilla/layout/base/nsCSSRendering.cpp +++ b/mozilla/layout/base/nsCSSRendering.cpp @@ -3113,13 +3113,14 @@ nsCSSRendering::PaintBackgroundWithSC(nsIPresContext* aPresContext, y1 = y0 + tileHeight; } + nsRect tileRect(x0,y0,(x1-x0),(y1-y0)); + #ifdef XP_WIN - PRInt32 xOffset = dirtyRect.x - x0, - yOffset = dirtyRect.y - y0; - aRenderingContext.DrawTile(image,xOffset,yOffset,&dirtyRect); + PRInt32 xOffset = tileRect.x - x0, + yOffset = tileRect.y - y0; + aRenderingContext.DrawTile(image,xOffset,yOffset,&tileRect); #else nsRect drawRect; - nsRect tileRect(x0,y0,(x1-x0),(y1-y0)); if (drawRect.IntersectRect(tileRect, dirtyRect)) { PRInt32 xOffset = drawRect.x - x0, diff --git a/mozilla/layout/html/style/src/nsCSSRendering.cpp b/mozilla/layout/html/style/src/nsCSSRendering.cpp index da1afba7e71..7b26aaaef87 100644 --- a/mozilla/layout/html/style/src/nsCSSRendering.cpp +++ b/mozilla/layout/html/style/src/nsCSSRendering.cpp @@ -3113,13 +3113,14 @@ nsCSSRendering::PaintBackgroundWithSC(nsIPresContext* aPresContext, y1 = y0 + tileHeight; } + nsRect tileRect(x0,y0,(x1-x0),(y1-y0)); + #ifdef XP_WIN - PRInt32 xOffset = dirtyRect.x - x0, - yOffset = dirtyRect.y - y0; - aRenderingContext.DrawTile(image,xOffset,yOffset,&dirtyRect); + PRInt32 xOffset = tileRect.x - x0, + yOffset = tileRect.y - y0; + aRenderingContext.DrawTile(image,xOffset,yOffset,&tileRect); #else nsRect drawRect; - nsRect tileRect(x0,y0,(x1-x0),(y1-y0)); if (drawRect.IntersectRect(tileRect, dirtyRect)) { PRInt32 xOffset = drawRect.x - x0,