| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 bool hasEquivalentAttributes(const Element* other) const; | 402 bool hasEquivalentAttributes(const Element* other) const; |
| 403 | 403 |
| 404 virtual void copyNonAttributePropertiesFromElement(const Element&) {} | 404 virtual void copyNonAttributePropertiesFromElement(const Element&) {} |
| 405 | 405 |
| 406 void attachLayoutTree(const AttachContext& = AttachContext()) override; | 406 void attachLayoutTree(const AttachContext& = AttachContext()) override; |
| 407 void detachLayoutTree(const AttachContext& = AttachContext()) override; | 407 void detachLayoutTree(const AttachContext& = AttachContext()) override; |
| 408 | 408 |
| 409 virtual LayoutObject* createLayoutObject(const ComputedStyle&); | 409 virtual LayoutObject* createLayoutObject(const ComputedStyle&); |
| 410 virtual bool layoutObjectIsNeeded(const ComputedStyle&); | 410 virtual bool layoutObjectIsNeeded(const ComputedStyle&); |
| 411 void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr); | 411 void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr); |
| 412 StyleRecalcChange rebuildLayoutTree(); | 412 void rebuildLayoutTree(); |
| 413 void pseudoStateChanged(CSSSelector::PseudoType); | 413 void pseudoStateChanged(CSSSelector::PseudoType); |
| 414 void setAnimationStyleChange(bool); | 414 void setAnimationStyleChange(bool); |
| 415 void clearAnimationStyleChange(); | 415 void clearAnimationStyleChange(); |
| 416 void setNeedsAnimationStyleRecalc(); | 416 void setNeedsAnimationStyleRecalc(); |
| 417 | 417 |
| 418 void setNeedsCompositingUpdate(); | 418 void setNeedsCompositingUpdate(); |
| 419 | 419 |
| 420 bool supportsStyleSharing() const; | 420 bool supportsStyleSharing() const; |
| 421 | 421 |
| 422 ElementShadow* shadow() const; | 422 ElementShadow* shadow() const; |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 void inlineStyleChanged(); | 823 void inlineStyleChanged(); |
| 824 void setInlineStyleFromString(const AtomicString&); | 824 void setInlineStyleFromString(const AtomicString&); |
| 825 | 825 |
| 826 // If the only inherited changes in the parent element are independent, | 826 // If the only inherited changes in the parent element are independent, |
| 827 // these changes can be directly propagated to this element (the child). | 827 // these changes can be directly propagated to this element (the child). |
| 828 // If these conditions are met, propagates the changes to the current style | 828 // If these conditions are met, propagates the changes to the current style |
| 829 // and returns the new style. Otherwise, returns null. | 829 // and returns the new style. Otherwise, returns null. |
| 830 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); | 830 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); |
| 831 | 831 |
| 832 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*); | 832 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*); |
| 833 void reattachPseudoElementLayoutTree(PseudoId); |
| 834 void rebuildShadowRootLayoutTree(); |
| 833 inline void checkForEmptyStyleChange(); | 835 inline void checkForEmptyStyleChange(); |
| 834 | 836 |
| 835 void updatePseudoElement(PseudoId, StyleRecalcChange); | 837 void updatePseudoElement(PseudoId, StyleRecalcChange); |
| 836 bool updateFirstLetter(Element*); | 838 bool updateFirstLetter(Element*); |
| 837 | 839 |
| 838 inline void createPseudoElementIfNeeded(PseudoId); | 840 inline void createPseudoElementIfNeeded(PseudoId); |
| 839 | 841 |
| 840 ShadowRoot* shadowRoot() const; | 842 ShadowRoot* shadowRoot() const; |
| 841 | 843 |
| 842 // FIXME: Everyone should allow author shadows. | 844 // FIXME: Everyone should allow author shadows. |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1187 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1186 static T* create(const QualifiedName&, Document&) | 1188 static T* create(const QualifiedName&, Document&) |
| 1187 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1189 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1188 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1190 T* T::create(const QualifiedName& tagName, Document& document) { \ |
| 1189 return new T(tagName, document); \ | 1191 return new T(tagName, document); \ |
| 1190 } | 1192 } |
| 1191 | 1193 |
| 1192 } // namespace blink | 1194 } // namespace blink |
| 1193 | 1195 |
| 1194 #endif // Element_h | 1196 #endif // Element_h |
| OLD | NEW |