Bug 1013536 - Clip paint flashing area when using single-rect painting mode. r=Bas

This commit is contained in:
Matt Woodrow 2014-05-22 14:36:26 +12:00
parent 8c2b1e7d78
commit 24c80a523e

View File

@ -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);
}