mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 1013536 - Clip paint flashing area when using single-rect painting mode. r=Bas
This commit is contained in:
parent
8c2b1e7d78
commit
24c80a523e
@ -3854,6 +3854,14 @@ FrameLayerBuilder::DrawThebesLayer(ThebesLayer* aLayer,
|
||||
}
|
||||
|
||||
if (presContext->GetPaintFlashing()) {
|
||||
gfxContextAutoSaveRestore save(aContext);
|
||||
if (shouldDrawRectsSeparately) {
|
||||
if (aClip == DrawRegionClip::DRAW_SNAPPED) {
|
||||
gfxUtils::ClipToRegionSnapped(aContext, aRegionToDraw);
|
||||
} else if (aClip == DrawRegionClip::DRAW) {
|
||||
gfxUtils::ClipToRegion(aContext, aRegionToDraw);
|
||||
}
|
||||
}
|
||||
FlashPaint(aContext);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user