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

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

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 | « no previous file | sky/engine/core/dom/Element.cpp » ('j') | sky/engine/core/dom/Element.idl » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Element.h
diff --git a/sky/engine/core/dom/Element.h b/sky/engine/core/dom/Element.h
index 0ed9f01a2dcce3baeb5c83e30b4aea16949090ac..b497c7533eca4ead40df10cc5d589984162bc478 100644
--- a/sky/engine/core/dom/Element.h
+++ b/sky/engine/core/dom/Element.h
@@ -215,11 +215,19 @@ public:
double height() const;
void setHeight(double);
+ double minContentWidth() const;
+ void setMinContentWidth(double);
+
+ double maxContentWidth() const;
+ void setMaxContentWidth(double);
+
void setNeedsLayout();
void layout();
+ LayoutCallback* intrinsicWidthsComputer() const;
LayoutCallback* layoutManager() const;
- void setLayoutManager(PassOwnPtr<LayoutCallback>);
+ void setLayoutManager(PassOwnPtr<LayoutCallback> layoutManager,
+ PassOwnPtr<LayoutCallback> intrinsicWidthsComputer);
RenderStyle* computedStyle();
@@ -370,6 +378,7 @@ private:
RefPtr<ElementData> m_elementData;
OwnPtr<LayoutCallback> m_layoutManager;
+ OwnPtr<LayoutCallback> m_intrinsicWidthsComputer;
};
DEFINE_NODE_TYPE_CASTS(Element, isElementNode());
« no previous file with comments | « no previous file | sky/engine/core/dom/Element.cpp » ('j') | sky/engine/core/dom/Element.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698