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

Unified Diff: sky/engine/core/dom/Element.idl

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
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/engine/core/rendering/RenderBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Element.idl
diff --git a/sky/engine/core/dom/Element.idl b/sky/engine/core/dom/Element.idl
index 1ad2d6f9dbbd8fb358da79065a6dee34477b41f5..957369050984c16105872b3ab14749d10a23687a 100644
--- a/sky/engine/core/dom/Element.idl
+++ b/sky/engine/core/dom/Element.idl
@@ -20,7 +20,7 @@
void setNeedsLayout();
void layout();
- void setLayoutManager(LayoutCallback callback);
+ void setLayoutManager(LayoutCallback layout, LayoutCallback computeIntrinsicWidths);
// TODO(abarth): Move to Node.
readonly attribute CSSStyleDeclaration style;
@@ -48,4 +48,6 @@
attribute double y;
attribute double width;
attribute double height;
+ attribute double minContentWidth; // Intrinsic width if all wrappable points wrap.
eseidel 2015/04/23 18:26:26 So these only make sense if you have a layout mana
ojan 2015/04/24 20:02:42 No, they make sense for all nodes. For example, a
+ attribute double maxContentWidth; // Intrinsic width if no wrappable points wrap.
};
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/engine/core/rendering/RenderBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698