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:
Matt Woodrow 2018-06-20 14:24:46 +12:00
Родитель cbc07da4e7
Коммит b7382ce595
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

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