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

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

Issue 328933002: Autosize flex boxes. (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 | « Source/core/rendering/RenderDeprecatedFlexibleBox.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderFlexibleBox.cpp
diff --git a/Source/core/rendering/RenderFlexibleBox.cpp b/Source/core/rendering/RenderFlexibleBox.cpp
index fa6acdd3fa7cb7f3d655c27341545f55bad145d0..7cab4eda8558c0e972e2a7fed1a86c3219f8fbe8 100644
--- a/Source/core/rendering/RenderFlexibleBox.cpp
+++ b/Source/core/rendering/RenderFlexibleBox.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "core/rendering/RenderFlexibleBox.h"
+#include "core/rendering/FastTextAutosizer.h"
#include "core/rendering/LayoutRepainter.h"
#include "core/rendering/RenderLayer.h"
#include "core/rendering/RenderView.h"
@@ -240,6 +241,7 @@ void RenderFlexibleBox::layoutBlock(bool relayoutChildren)
setLogicalHeight(borderAndPaddingLogicalHeight() + scrollbarLogicalHeight());
{
+ FastTextAutosizer::LayoutScope fastTextAutosizerLayoutScope(this);
LayoutStateMaintainer statePusher(*this, locationOffset());
m_numberOfInFlowChildrenOnFirstLine = -1;
« no previous file with comments | « Source/core/rendering/RenderDeprecatedFlexibleBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698