b=148598 r=peterl sr=kin a=asa. This speeds up scrolling with very large backgrounds.
git-svn-id: svn://10.0.0.236/trunk@126115 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
afe2d1af3d
commit
769ea6c8fa
@ -3114,20 +3114,15 @@ nsCSSRendering::PaintBackgroundWithSC(nsIPresContext* aPresContext,
|
||||
}
|
||||
|
||||
nsRect tileRect(x0,y0,(x1-x0),(y1-y0));
|
||||
|
||||
#ifdef XP_WIN
|
||||
PRInt32 xOffset = tileRect.x - x0,
|
||||
yOffset = tileRect.y - y0;
|
||||
aRenderingContext.DrawTile(image,xOffset,yOffset,&tileRect);
|
||||
#else
|
||||
nsRect drawRect;
|
||||
|
||||
if (drawRect.IntersectRect(tileRect, dirtyRect)) {
|
||||
PRInt32 xOffset = drawRect.x - x0,
|
||||
yOffset = drawRect.y - y0;
|
||||
PRInt32 xOffset, yOffset;
|
||||
|
||||
xOffset = drawRect.x - x0,
|
||||
yOffset = drawRect.y - y0;
|
||||
aRenderingContext.DrawTile(image,xOffset,yOffset,&drawRect);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (!defined(XP_UNIX) && !defined(XP_BEOS)) || defined(XP_MACOSX)
|
||||
// Restore clipping
|
||||
|
||||
@ -3114,20 +3114,15 @@ nsCSSRendering::PaintBackgroundWithSC(nsIPresContext* aPresContext,
|
||||
}
|
||||
|
||||
nsRect tileRect(x0,y0,(x1-x0),(y1-y0));
|
||||
|
||||
#ifdef XP_WIN
|
||||
PRInt32 xOffset = tileRect.x - x0,
|
||||
yOffset = tileRect.y - y0;
|
||||
aRenderingContext.DrawTile(image,xOffset,yOffset,&tileRect);
|
||||
#else
|
||||
nsRect drawRect;
|
||||
|
||||
if (drawRect.IntersectRect(tileRect, dirtyRect)) {
|
||||
PRInt32 xOffset = drawRect.x - x0,
|
||||
yOffset = drawRect.y - y0;
|
||||
PRInt32 xOffset, yOffset;
|
||||
|
||||
xOffset = drawRect.x - x0,
|
||||
yOffset = drawRect.y - y0;
|
||||
aRenderingContext.DrawTile(image,xOffset,yOffset,&drawRect);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (!defined(XP_UNIX) && !defined(XP_BEOS)) || defined(XP_MACOSX)
|
||||
// Restore clipping
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user