Use the intersected dirty rect, like I meant to, to fix bugs on platforms that don't handle negative src rect coordinates in images (and maybe performance regression?). b=374579 r=pavlov
git-svn-id: svn://10.0.0.236/trunk@222115 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1927,10 +1927,10 @@ nsLayoutUtils::DrawImage(nsIRenderingContext* aRenderingContext,
|
||||
gfxRect pxDirty;
|
||||
{
|
||||
nsIntRect r;
|
||||
r.x = NSAppUnitsToIntPixels(aDirtyRect.x, d2a);
|
||||
r.y = NSAppUnitsToIntPixels(aDirtyRect.y, d2a);
|
||||
r.width = NSAppUnitsToIntPixels(aDirtyRect.XMost(), d2a) - r.x;
|
||||
r.height = NSAppUnitsToIntPixels(aDirtyRect.YMost(), d2a) - r.y;
|
||||
r.x = NSAppUnitsToIntPixels(dirtyRect.x, d2a);
|
||||
r.y = NSAppUnitsToIntPixels(dirtyRect.y, d2a);
|
||||
r.width = NSAppUnitsToIntPixels(dirtyRect.XMost(), d2a) - r.x;
|
||||
r.height = NSAppUnitsToIntPixels(dirtyRect.YMost(), d2a) - r.y;
|
||||
pxDirty.pos.x = gfxFloat(r.x);
|
||||
pxDirty.pos.y = gfxFloat(r.y);
|
||||
pxDirty.size.width = gfxFloat(r.width);
|
||||
|
||||
Reference in New Issue
Block a user