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
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user