Index: Source/core/layout/LayoutTreeAsText.cpp |
diff --git a/Source/core/layout/LayoutTreeAsText.cpp b/Source/core/layout/LayoutTreeAsText.cpp |
index 0909331b566dfaf22dc72bfd6895c7022b7eb163..4eb5941d3f43e658b3203adf668a8a8e4197f781 100644 |
--- a/Source/core/layout/LayoutTreeAsText.cpp |
+++ b/Source/core/layout/LayoutTreeAsText.cpp |
@@ -489,7 +489,7 @@ void write(TextStream& ts, const LayoutObject& o, int indent, LayoutAsTextBehavi |
FrameView* view = toFrameView(widget); |
LayoutView* root = view->layoutView(); |
if (root) { |
- view->layout(); |
+ root->document().updateLayout(); |
DeprecatedPaintLayer* layer = root->layer(); |
if (layer) |
LayoutTreeAsText::writeLayers(ts, layer, layer, layer->rect(), indent + 1, behavior); |