mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1083635. Part 4.5: Avoid requesting PAINT_WIDGET_LAYERS if we're in a content process. r=mattwoodrow
--HG-- extra : rebase_source : 2559a0f44319264fe6395ef833269fb412f18502
This commit is contained in:
parent
d0f1ae646e
commit
c2d5639aae
@ -4915,7 +4915,14 @@ PresShell::RenderDocument(const nsRect& aRect, uint32_t aFlags,
|
||||
nsView* view = rootFrame->GetView();
|
||||
if (view && view->GetWidget() &&
|
||||
nsLayoutUtils::GetDisplayRootFrame(rootFrame) == rootFrame) {
|
||||
flags |= nsLayoutUtils::PAINT_WIDGET_LAYERS;
|
||||
LayerManager* layerManager = view->GetWidget()->GetLayerManager();
|
||||
// ClientLayerManagers in content processes don't support
|
||||
// taking snapshots.
|
||||
if (layerManager &&
|
||||
(!layerManager->AsClientLayerManager() ||
|
||||
XRE_GetProcessType() == GeckoProcessType_Default)) {
|
||||
flags |= nsLayoutUtils::PAINT_WIDGET_LAYERS;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!(aFlags & RENDER_CARET)) {
|
||||
|
Loading…
Reference in New Issue
Block a user