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

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

Issue 1880343004: Fix TextAutosizer not to scheduleRelayout() for LayoutGrid::layoutBlock() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« 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: 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 c289e73157282f2d53cb848b2e832d14ca529527..b8c1e85541a30d649f3b8cad64ae8fa5922cbe57 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
@@ -347,6 +347,8 @@ void LayoutGrid::layoutBlock(bool relayoutChildren)
if (!relayoutChildren && simplifiedLayout())
return;
+ SubtreeLayoutScope layoutScope(*this);
+
{
// LayoutState needs this deliberate scope to pop before updating scroll information (which
// may trigger relayout).
@@ -357,7 +359,7 @@ void LayoutGrid::layoutBlock(bool relayoutChildren)
updateLogicalWidth();
bool logicalHeightWasIndefinite = computeContentLogicalHeight(MainOrPreferredSize, style()->logicalHeight(), LayoutUnit(-1)) == LayoutUnit(-1);
- TextAutosizer::LayoutScope textAutosizerLayoutScope(this);
+ TextAutosizer::LayoutScope textAutosizerLayoutScope(this, &layoutScope);
placeItemsOnGrid();
« 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