Index: Source/core/frame/LocalFrame.cpp |
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp |
index 2add1aad732196d33bc1e784553a03c8878c3438..1a13ed7e7221e3099987f5358fd2ea2dcda11ad3 100644 |
--- a/Source/core/frame/LocalFrame.cpp |
+++ b/Source/core/frame/LocalFrame.cpp |
@@ -425,11 +425,11 @@ void LocalFrame::countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigne |
String LocalFrame::layerTreeAsText(unsigned flags) const |
{ |
- document()->updateLayout(); |
- |
if (!contentRenderer()) |
return String(); |
+ ASSERT(document()->lifecycle().state() >= DocumentLifecycle::CompositingClean); |
+ |
return contentRenderer()->compositor()->layerTreeAsText(static_cast<LayerTreeFlags>(flags)); |
} |