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

Unified Diff: Source/core/layout/LayoutTreeAsText.cpp

Issue 1054423002: Replace layout with updateLayout during dumping LayoutTree (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use root->document().updateLayout() Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698