if (!needCompositingRequirementsUpdate && !needHierarchyAndGeometryUpdate && !needGeometryUpdate && !needsToUpdateScrollingCoordinator)
return;
- GraphicsLayerUpdater::UpdateType updateType = m_pendingUpdateType;
-
// Only clear the flags if we're updating the entire hierarchy.
m_compositingLayersNeedRebuild = false;
m_needsToUpdateLayerTreeGeometry = false;
if (needGeometryUpdate || needHierarchyAndGeometryUpdate) {
TRACE_EVENT0("blink_rendering", "GraphicsLayerUpdater::updateRecursive");
- GraphicsLayerUpdater().update(*updateRoot, updateType);
+ GraphicsLayerUpdater().update(*updateRoot, GraphicsLayerUpdater::ForceUpdate);
}
if (needHierarchyAndGeometryUpdate) {
// Host the document layer in the RenderView's root layer.
if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && isMainFrame()) {
RenderVideo* video = findFullscreenVideoRenderer(m_renderView.document());
+ GraphicsLayer* backgroundLayer = fixedRootBackgroundLayer();
if (video && video->hasCompositedLayerMapping()) {
childList.clear();
childList.append(video->compositedLayerMapping()->mainGraphicsLayer());
+ if (backgroundLayer && backgroundLayer->parent())
+ backgroundLayer->removeFromParent();
+ } else {
+ if (backgroundLayer && !backgroundLayer->parent())
+ rootFixedBackgroundsChanged();
}
}