mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 579276. Part 12: Clip all drawing to the visible region on the nonretained path. r=cjones
This commit is contained in:
parent
fa118e17df
commit
faf8ba3044
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user