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

Unified Diff: sky/engine/core/rendering/RenderBox.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/RenderBox.cpp
diff --git a/sky/engine/core/rendering/RenderBox.cpp b/sky/engine/core/rendering/RenderBox.cpp
index 2b0716e0eae679c1e2b64d9d142d675019735f19..59acacea1dcec48cc0d953072615bd69f7344d5b 100644
--- a/sky/engine/core/rendering/RenderBox.cpp
+++ b/sky/engine/core/rendering/RenderBox.cpp
@@ -388,6 +388,16 @@ LayoutUnit RenderBox::maxPreferredLogicalWidth() const
return m_maxPreferredLogicalWidth;
}
+void RenderBox::setMinPreferredLogicalWidth(LayoutUnit width)
+{
+ m_minPreferredLogicalWidth = width;
+}
+
+void RenderBox::setMaxPreferredLogicalWidth(LayoutUnit width)
+{
+ m_maxPreferredLogicalWidth = width;
+}
+
bool RenderBox::hasOverrideHeight() const
{
return m_rareData && m_rareData->m_overrideLogicalContentHeight != -1;

Powered by Google App Engine
This is Rietveld 408576698