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

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

Issue 146023008: Add layout states to DocumentLifecycle state machine (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Whitelist one more transition' Created 6 years, 10 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/RenderLayer.cpp ('k') | Source/core/rendering/RenderMediaControlElements.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/RenderLayerCompositor.cpp b/Source/core/rendering/RenderLayerCompositor.cpp
index 9c3450767be33ec499b3828a0f62cd3748086cd9..d2e1acb6aef15db32096499eaa9e0bf1f96fcf8c 100644
--- a/Source/core/rendering/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/RenderLayerCompositor.cpp
@@ -2417,6 +2417,7 @@ void RenderLayerCompositor::attachRootLayer(RootLayerAttachment attachment)
case RootLayerAttachedViaEnclosingFrame: {
// The layer will get hooked up via CompositedLayerMapping::updateGraphicsLayerConfiguration()
// for the frame's renderer in the parent document.
+ DocumentLifecycle::DeprecatedTransition marker(DocumentLifecycle::AfterPerformLayout, DocumentLifecycle::StyleRecalcPending);
m_renderView->document().ownerElement()->scheduleLayerUpdate();
break;
}
@@ -2478,6 +2479,8 @@ void RenderLayerCompositor::notifyIFramesOfCompositingChange()
return;
Frame& frame = m_renderView->frameView()->frame();
+ DocumentLifecycle::DeprecatedTransition marker(DocumentLifecycle::AfterPerformLayout, DocumentLifecycle::StyleRecalcPending);
+
for (Frame* child = frame.tree().firstChild(); child; child = child->tree().traverseNext(&frame)) {
if (child->document() && child->document()->ownerElement())
child->document()->ownerElement()->scheduleLayerUpdate();
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderMediaControlElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698