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

Unified Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 302083002: Always give RenderParts a RenderLayer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add win/mac needsrebaselines Created 6 years, 6 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/rendering/RenderPart.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
index fc785ce3536514cd214ab5076ded7719f8ffff2c..6c641a288462cfeae2e3f71362969b167c3866db 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -147,6 +147,13 @@ void RenderLayerCompositor::setCompositingModeEnabled(bool enable)
m_compositing = enable;
+ // RenderPart::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_renderView.document().ownerElement()) {
+ if (RenderPart* renderer = ownerElement->renderPart())
+ renderer->layer()->updateSelfPaintingLayer();
+ }
+
if (m_compositing)
ensureRootLayer();
else
« no previous file with comments | « Source/core/rendering/RenderPart.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698