mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1469746 - Rebuild display lists in full when we start/stop computing visibility for plugins. r=miko
MozReview-Commit-ID: 3xHoYBBA4Fy --HG-- extra : rebase_source : f99344ffe0dbcd020abd745a3168f4b86b2ebba4
This commit is contained in:
parent
cbc07da4e7
commit
b7382ce595
@ -3588,6 +3588,10 @@ nsLayoutUtils::PaintFrame(gfxContext* aRenderingContext, nsIFrame* aFrame,
|
||||
!(aFlags & PaintFrameFlags::PAINT_DOCUMENT_RELATIVE) &&
|
||||
rootPresContext->NeedToComputePluginGeometryUpdates()) {
|
||||
builder.SetWillComputePluginGeometry(true);
|
||||
|
||||
// Disable partial updates for this paint as the list we're about to
|
||||
// build has plugin-specific differences that won't trigger invalidations.
|
||||
builder.SetDisablePartialUpdates(true);
|
||||
}
|
||||
|
||||
nsRect canvasArea(nsPoint(0, 0), aFrame->GetSize());
|
||||
@ -3939,6 +3943,10 @@ nsLayoutUtils::PaintFrame(gfxContext* aRenderingContext, nsIFrame* aFrame,
|
||||
if (layerManager) {
|
||||
layerManager->ScheduleComposite();
|
||||
}
|
||||
|
||||
// Disable partial updates for the following paint as well, as we now have
|
||||
// a plugin-specific display list.
|
||||
builder.SetDisablePartialUpdates(true);
|
||||
}
|
||||
|
||||
builder.Check();
|
||||
|
Loading…
Reference in New Issue
Block a user