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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp

Issue 1887933002: (CANCELED) Fix TextAutosizer not to scheduleRelayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplifiedLayout Created 4 years, 8 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
Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 6a3f12869f1c02d64c4b8b1551c7327c96ecd864..fe08570a41a9399509caae1ded59d2bc6c27b834 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -311,11 +311,12 @@ void LayoutBlockFlow::layoutBlock(bool relayoutChildren)
// at least once and so that it always gives a reliable result reflecting the latest layout.
m_hasOnlySelfCollapsingChildren = false;
- if (!relayoutChildren && simplifiedLayout())
+ SubtreeLayoutScope layoutScope(*this);
+
+ if (!relayoutChildren && simplifiedLayout(&layoutScope))
return;
LayoutAnalyzer::BlockScope analyzer(*this);
- SubtreeLayoutScope layoutScope(*this);
// Multiple passes might be required for column based layout.
// The number of passes could be as high as the number of columns.

Powered by Google App Engine
This is Rietveld 408576698