Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1187)

Unified Diff: Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp

Issue 1293533005: HTMLPluginElement should use setNeedsCompositingUpdate() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698