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

Unified Diff: sky/engine/core/rendering/RenderCustomLayout.cpp

Issue 1101793003: Expose minContentWidth/maxContentWidth and a callback for computing them. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: make variable names consistent Created 5 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: sky/engine/core/rendering/RenderCustomLayout.cpp
diff --git a/sky/engine/core/rendering/RenderCustomLayout.cpp b/sky/engine/core/rendering/RenderCustomLayout.cpp
index 5f55b5f51eee844ce168134df93075577ca96942..9001e37940f880dbd19ec9024aa91e9db9b2c654 100644
--- a/sky/engine/core/rendering/RenderCustomLayout.cpp
+++ b/sky/engine/core/rendering/RenderCustomLayout.cpp
@@ -19,6 +19,13 @@ RenderCustomLayout::~RenderCustomLayout()
{
}
+void RenderCustomLayout::computePreferredLogicalWidths()
+{
+ ASSERT(node()->isElementNode());
+ toElement(node())->intrinsicWidthsComputer()->handleEvent();
+ clearPreferredLogicalWidthsDirty();
+}
+
void RenderCustomLayout::layout()
{
ASSERT(node()->isElementNode());

Powered by Google App Engine
This is Rietveld 408576698