Index: Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
diff --git a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
index 9fc7bb163f313ac33c96cce94f4efa0daaf8906a..8e789ad3cee61cba101c1beba65e492a19f878d3 100644 |
--- a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
+++ b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp |
@@ -106,20 +106,13 @@ void DeprecatedPaintLayerCompositor::setCompositingModeEnabled(bool enable) |
m_compositing = enable; |
- // LayoutPart::requiresAcceleratedCompositing is used to determine self-paintingness |
- // and bases it's return value for frames on the m_compositing bit here. |
- if (HTMLFrameOwnerElement* ownerElement = m_layoutView.document().ownerElement()) { |
- if (LayoutPart* layoutObject = ownerElement->layoutPart()) |
- layoutObject->layer()->updateSelfPaintingLayer(); |
- } |
- |
if (m_compositing) |
ensureRootLayer(); |
else |
destroyRootLayer(); |
- // Compositing also affects the answer to LayoutIFrame::requiresAcceleratedCompositing(), so |
- // we need to schedule a style recalc in our parent document. |
+ // Schedule an update in the parent frame so the <iframe>'s layer in the owner |
+ // document matches the compositing state here. |
if (HTMLFrameOwnerElement* ownerElement = m_layoutView.document().ownerElement()) |
ownerElement->setNeedsCompositingUpdate(); |
} |