Bug 579276. Part 12: Clip all drawing to the visible region on the nonretained path. r=cjones

This commit is contained in:
Robert O'Callahan 2010-09-03 14:31:42 +12:00
parent fa118e17df
commit faf8ba3044

View File

@ -403,17 +403,17 @@ BasicThebesLayer::Paint(gfxContext* aContext,
mValidRegion.SetEmpty();
mBuffer.Clear();
target->Save();
gfxUtils::ClipToRegionSnapped(target, mVisibleRegion);
if (aOpacity != 1.0) {
target->Save();
ClipToContain(target, mVisibleRegion.GetBounds());
target->PushGroup(gfxASurface::CONTENT_COLOR_ALPHA);
}
aCallback(this, target, mVisibleRegion, nsIntRegion(), aCallbackData);
if (aOpacity != 1.0) {
target->PopGroupToSource();
target->Paint(aOpacity);
target->Restore();
}
target->Restore();
return;
}