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

Unified Diff: Source/core/rendering/RenderGrid.cpp

Issue 324183002: Create an autosizing layout scope in RenderGrid. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 | « LayoutTests/fast/text-autosizing/grid-dbcat-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderGrid.cpp
diff --git a/Source/core/rendering/RenderGrid.cpp b/Source/core/rendering/RenderGrid.cpp
index 163edcffe0754ba440f5c24fba58f1a10b62528a..7a7ee3bba081b31d6c9a2df8df1f61e7d1387c8e 100644
--- a/Source/core/rendering/RenderGrid.cpp
+++ b/Source/core/rendering/RenderGrid.cpp
@@ -26,6 +26,7 @@
#include "config.h"
#include "core/rendering/RenderGrid.h"
+#include "core/rendering/FastTextAutosizer.h"
#include "core/rendering/LayoutRepainter.h"
#include "core/rendering/RenderLayer.h"
#include "core/rendering/RenderView.h"
@@ -304,6 +305,8 @@ void RenderGrid::layoutBlock(bool relayoutChildren)
setLogicalHeight(0);
updateLogicalWidth();
+ FastTextAutosizer::LayoutScope fastTextAutosizerLayoutScope(this);
+
layoutGridItems();
LayoutUnit oldClientAfterEdge = clientLogicalBottom();
« no previous file with comments | « LayoutTests/fast/text-autosizing/grid-dbcat-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698