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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutFlexibleBox.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/LayoutFlexibleBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
index a781e6885d20a16633580c9d720565382b9c82ef..b1790b39178d1a479a01fc6b44dc011d2ec83087 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
@@ -266,13 +266,14 @@ void LayoutFlexibleBox::layoutBlock(bool relayoutChildren)
{
ASSERT(needsLayout());
- if (!relayoutChildren && simplifiedLayout())
+ SubtreeLayoutScope layoutScope(*this);
+
+ if (!relayoutChildren && simplifiedLayout(&layoutScope))
return;
if (updateLogicalWidthAndColumnWidth())
relayoutChildren = true;
- SubtreeLayoutScope layoutScope(*this);
LayoutUnit previousHeight = logicalHeight();
setLogicalHeight(borderAndPaddingLogicalHeight() + scrollbarLogicalHeight());

Powered by Google App Engine
This is Rietveld 408576698