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

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

Issue 1055243002: Revert "Revert "First iteration on custom layout."" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/core.gni ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »
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 5772343bd2ad48838557d3ed074c11c4d5140488..caf38d12c61f240997d507d9565f44bf6cdbe83d 100644
--- a/sky/engine/core/dom/Element.h
+++ b/sky/engine/core/dom/Element.h
@@ -50,6 +50,7 @@ class ElementShadow;
class ExceptionState;
class Image;
class IntSize;
+class LayoutCallback;
class MutableStylePropertySet;
class PaintingCallback;
class PropertySetCSSStyleDeclaration;
@@ -201,8 +202,23 @@ public:
PassRefPtr<ShadowRoot> ensureShadowRoot(ExceptionState&);
ShadowRoot* shadowRoot() const;
+ double x() const;
+ void setX(double);
+
+ double y() const;
+ void setY(double);
+
+ double width() const;
+ void setWidth(double);
+
+ double height() const;
+ void setHeight(double);
+
bool hasAuthorShadowRoot() const { return shadowRoot(); }
+ LayoutCallback* layoutManager() const;
+ void setLayoutManager(PassOwnPtr<LayoutCallback>);
+
RenderStyle* computedStyle();
bool isUpgradedCustomElement() const { return customElementState() == Upgraded; }
@@ -351,6 +367,7 @@ private:
ElementRareData& ensureElementRareData();
RefPtr<ElementData> m_elementData;
+ OwnPtr<LayoutCallback> m_layoutManager;
};
DEFINE_NODE_TYPE_CASTS(Element, isElementNode());
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698