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

Side by Side Diff: sky/engine/core/dom/Element.h

Issue 1055263002: Make custom layout actually work. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void recalcStyle(StyleRecalcChange); 194 void recalcStyle(StyleRecalcChange);
195 void setAnimationStyleChange(bool); 195 void setAnimationStyleChange(bool);
196 void setNeedsAnimationStyleRecalc(); 196 void setNeedsAnimationStyleRecalc();
197 197
198 bool supportsStyleSharing() const; 198 bool supportsStyleSharing() const;
199 199
200 ElementShadow* shadow() const; 200 ElementShadow* shadow() const;
201 ElementShadow& ensureShadow(); 201 ElementShadow& ensureShadow();
202 PassRefPtr<ShadowRoot> ensureShadowRoot(ExceptionState&); 202 PassRefPtr<ShadowRoot> ensureShadowRoot(ExceptionState&);
203 ShadowRoot* shadowRoot() const; 203 ShadowRoot* shadowRoot() const;
204 bool hasAuthorShadowRoot() const { return shadowRoot(); }
204 205
205 double x() const; 206 double x() const;
206 void setX(double); 207 void setX(double);
207 208
208 double y() const; 209 double y() const;
209 void setY(double); 210 void setY(double);
210 211
211 double width() const; 212 double width() const;
212 void setWidth(double); 213 void setWidth(double);
213 214
214 double height() const; 215 double height() const;
215 void setHeight(double); 216 void setHeight(double);
216 217
217 bool hasAuthorShadowRoot() const { return shadowRoot(); } 218 void setNeedsLayout();
219 void layout();
218 220
219 LayoutCallback* layoutManager() const; 221 LayoutCallback* layoutManager() const;
220 void setLayoutManager(PassOwnPtr<LayoutCallback>); 222 void setLayoutManager(PassOwnPtr<LayoutCallback>);
221 223
222 RenderStyle* computedStyle(); 224 RenderStyle* computedStyle();
223 225
224 bool isUpgradedCustomElement() const { return customElementState() == Upgrad ed; } 226 bool isUpgradedCustomElement() const { return customElementState() == Upgrad ed; }
225 bool isUnresolvedCustomElement() const { return customElementState() == Wait ingForUpgrade; } 227 bool isUnresolvedCustomElement() const { return customElementState() == Wait ingForUpgrade; }
226 228
227 AtomicString computeInheritedLanguage() const; 229 AtomicString computeInheritedLanguage() const;
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 static PassRefPtr<T> create(const QualifiedName&, Document&) 575 static PassRefPtr<T> create(const QualifiedName&, Document&)
574 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 576 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
575 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 577 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
576 { \ 578 { \
577 return adoptRef(new T(tagName, document)); \ 579 return adoptRef(new T(tagName, document)); \
578 } 580 }
579 581
580 } // namespace 582 } // namespace
581 583
582 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ 584 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698