| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 #include "sky/engine/core/css/CSSPrimitiveValue.h" | 30 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
| 31 #include "sky/engine/core/dom/Attribute.h" | 31 #include "sky/engine/core/dom/Attribute.h" |
| 32 #include "sky/engine/core/dom/ContainerNode.h" | 32 #include "sky/engine/core/dom/ContainerNode.h" |
| 33 #include "sky/engine/core/dom/ElementData.h" | 33 #include "sky/engine/core/dom/ElementData.h" |
| 34 #include "sky/engine/core/dom/SpaceSplitString.h" | 34 #include "sky/engine/core/dom/SpaceSplitString.h" |
| 35 #include "sky/engine/core/page/FocusType.h" | 35 #include "sky/engine/core/page/FocusType.h" |
| 36 #include "sky/engine/platform/heap/Handle.h" | 36 #include "sky/engine/platform/heap/Handle.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class ActiveAnimations; | |
| 41 class Attr; | 40 class Attr; |
| 42 class Attribute; | 41 class Attribute; |
| 43 class CSSStyleDeclaration; | 42 class CSSStyleDeclaration; |
| 44 class Canvas; | 43 class Canvas; |
| 45 class ClientRect; | 44 class ClientRect; |
| 46 class ClientRectList; | 45 class ClientRectList; |
| 47 class DOMTokenList; | 46 class DOMTokenList; |
| 48 class Document; | 47 class Document; |
| 49 class ElementRareData; | 48 class ElementRareData; |
| 50 class ElementShadow; | 49 class ElementShadow; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // The value will already be lowercased if the document is in compatibility
mode, | 104 // The value will already be lowercased if the document is in compatibility
mode, |
| 106 // so this function is not suitable for non-style uses. | 105 // so this function is not suitable for non-style uses. |
| 107 const AtomicString& idForStyleResolution() const; | 106 const AtomicString& idForStyleResolution() const; |
| 108 | 107 |
| 109 // This getter takes care of synchronizing all attributes before returning t
he | 108 // This getter takes care of synchronizing all attributes before returning t
he |
| 110 // AttributeCollection. If the Element has no attributes, an empty Attribute
Collection | 109 // AttributeCollection. If the Element has no attributes, an empty Attribute
Collection |
| 111 // will be returned. This is not a trivial getter and its return value shoul
d be cached | 110 // will be returned. This is not a trivial getter and its return value shoul
d be cached |
| 112 // for performance. | 111 // for performance. |
| 113 AttributeCollection attributes() const; | 112 AttributeCollection attributes() const; |
| 114 // This variant will not update the potentially invalid attributes. To be us
ed when not interested | 113 // This variant will not update the potentially invalid attributes. To be us
ed when not interested |
| 115 // in style attribute or one of the SVG animation attributes. | 114 // in style attribute. |
| 116 AttributeCollection attributesWithoutUpdate() const; | 115 AttributeCollection attributesWithoutUpdate() const; |
| 117 | 116 |
| 118 int offsetLeft(); | 117 int offsetLeft(); |
| 119 int offsetTop(); | 118 int offsetTop(); |
| 120 int offsetWidth(); | 119 int offsetWidth(); |
| 121 int offsetHeight(); | 120 int offsetHeight(); |
| 122 | 121 |
| 123 Element* offsetParent(); | 122 Element* offsetParent(); |
| 124 int clientLeft(); | 123 int clientLeft(); |
| 125 int clientTop(); | 124 int clientTop(); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // Clones all attribute-derived data, including subclass specifics (through
copyNonAttributeProperties.) | 185 // Clones all attribute-derived data, including subclass specifics (through
copyNonAttributeProperties.) |
| 187 void cloneDataFromElement(const Element&); | 186 void cloneDataFromElement(const Element&); |
| 188 | 187 |
| 189 bool hasEquivalentAttributes(const Element* other) const; | 188 bool hasEquivalentAttributes(const Element* other) const; |
| 190 | 189 |
| 191 void attach(const AttachContext& = AttachContext()) final; | 190 void attach(const AttachContext& = AttachContext()) final; |
| 192 void detach(const AttachContext& = AttachContext()) final; | 191 void detach(const AttachContext& = AttachContext()) final; |
| 193 | 192 |
| 194 virtual RenderObject* createRenderer(RenderStyle*); | 193 virtual RenderObject* createRenderer(RenderStyle*); |
| 195 void recalcStyle(StyleRecalcChange); | 194 void recalcStyle(StyleRecalcChange); |
| 196 void setAnimationStyleChange(bool); | |
| 197 void setNeedsAnimationStyleRecalc(); | |
| 198 | 195 |
| 199 bool supportsStyleSharing() const; | 196 bool supportsStyleSharing() const; |
| 200 | 197 |
| 201 ElementShadow* shadow() const; | 198 ElementShadow* shadow() const; |
| 202 ElementShadow& ensureShadow(); | 199 ElementShadow& ensureShadow(); |
| 203 PassRefPtr<ShadowRoot> ensureShadowRoot(ExceptionState&); | 200 PassRefPtr<ShadowRoot> ensureShadowRoot(ExceptionState&); |
| 204 ShadowRoot* shadowRoot() const; | 201 ShadowRoot* shadowRoot() const; |
| 205 bool hasAuthorShadowRoot() const { return shadowRoot(); } | 202 bool hasAuthorShadowRoot() const { return shadowRoot(); } |
| 206 | 203 |
| 207 double x() const; | 204 double x() const; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 | 271 |
| 275 bool isSpellCheckingEnabled() const; | 272 bool isSpellCheckingEnabled() const; |
| 276 | 273 |
| 277 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. | 274 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. |
| 278 PassRefPtr<RenderStyle> styleForRenderer(); | 275 PassRefPtr<RenderStyle> styleForRenderer(); |
| 279 | 276 |
| 280 bool hasID() const; | 277 bool hasID() const; |
| 281 bool hasClass() const; | 278 bool hasClass() const; |
| 282 const SpaceSplitString& classNames() const; | 279 const SpaceSplitString& classNames() const; |
| 283 | 280 |
| 284 ActiveAnimations* activeAnimations() const; | |
| 285 ActiveAnimations& ensureActiveAnimations(); | |
| 286 bool hasActiveAnimations() const; | |
| 287 | |
| 288 void synchronizeAttribute(const AtomicString& localName) const; | 281 void synchronizeAttribute(const AtomicString& localName) const; |
| 289 | 282 |
| 290 MutableStylePropertySet& ensureMutableInlineStyle(); | 283 MutableStylePropertySet& ensureMutableInlineStyle(); |
| 291 void clearMutableInlineStyleIfEmpty(); | 284 void clearMutableInlineStyleIfEmpty(); |
| 292 | 285 |
| 293 void setTabIndex(int); | 286 void setTabIndex(int); |
| 294 virtual short tabIndex() const override; | 287 virtual short tabIndex() const override; |
| 295 | 288 |
| 296 String contentEditable() const; | 289 String contentEditable() const; |
| 297 void setContentEditable(const String&, ExceptionState&); | 290 void setContentEditable(const String&, ExceptionState&); |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 static PassRefPtr<T> create(const QualifiedName&, Document&) | 584 static PassRefPtr<T> create(const QualifiedName&, Document&) |
| 592 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 585 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 593 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 586 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
| 594 { \ | 587 { \ |
| 595 return adoptRef(new T(tagName, document)); \ | 588 return adoptRef(new T(tagName, document)); \ |
| 596 } | 589 } |
| 597 | 590 |
| 598 } // namespace | 591 } // namespace |
| 599 | 592 |
| 600 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ | 593 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ |
| OLD | NEW |