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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutGrid.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/LayoutGrid.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
index cfde1c770390d00cb5a418ebb7f1d54fd22443fa..a486899cab22920c991a0145a0f3be1283775a5c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
@@ -346,11 +346,11 @@ void LayoutGrid::layoutBlock(bool relayoutChildren)
{
ASSERT(needsLayout());
- if (!relayoutChildren && simplifiedLayout())
- return;
-
SubtreeLayoutScope layoutScope(*this);
+ if (!relayoutChildren && simplifiedLayout(&layoutScope))
+ return;
+
{
// LayoutState needs this deliberate scope to pop before updating scroll information (which
// may trigger relayout).

Powered by Google App Engine
This is Rietveld 408576698