| 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 | 407 |
| 408 bool hasEquivalentAttributes(const Element* other) const; | 408 bool hasEquivalentAttributes(const Element* other) const; |
| 409 | 409 |
| 410 virtual void copyNonAttributePropertiesFromElement(const Element&) {} | 410 virtual void copyNonAttributePropertiesFromElement(const Element&) {} |
| 411 | 411 |
| 412 void attachLayoutTree(const AttachContext& = AttachContext()) override; | 412 void attachLayoutTree(const AttachContext& = AttachContext()) override; |
| 413 void detachLayoutTree(const AttachContext& = AttachContext()) override; | 413 void detachLayoutTree(const AttachContext& = AttachContext()) override; |
| 414 | 414 |
| 415 virtual LayoutObject* createLayoutObject(const ComputedStyle&); | 415 virtual LayoutObject* createLayoutObject(const ComputedStyle&); |
| 416 virtual bool layoutObjectIsNeeded(const ComputedStyle&); | 416 virtual bool layoutObjectIsNeeded(const ComputedStyle&); |
| 417 void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr); | 417 void recalcStyle(StyleRecalcChange); |
| 418 void rebuildLayoutTree(); | 418 void rebuildLayoutTree(Text* nextTextSibling = nullptr); |
| 419 void pseudoStateChanged(CSSSelector::PseudoType); | 419 void pseudoStateChanged(CSSSelector::PseudoType); |
| 420 void setAnimationStyleChange(bool); | 420 void setAnimationStyleChange(bool); |
| 421 void clearAnimationStyleChange(); | 421 void clearAnimationStyleChange(); |
| 422 void setNeedsAnimationStyleRecalc(); | 422 void setNeedsAnimationStyleRecalc(); |
| 423 | 423 |
| 424 void setNeedsCompositingUpdate(); | 424 void setNeedsCompositingUpdate(); |
| 425 | 425 |
| 426 bool supportsStyleSharing() const; | 426 bool supportsStyleSharing() const; |
| 427 | 427 |
| 428 ElementShadow* shadow() const; | 428 ElementShadow* shadow() const; |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 | 837 |
| 838 void inlineStyleChanged(); | 838 void inlineStyleChanged(); |
| 839 void setInlineStyleFromString(const AtomicString&); | 839 void setInlineStyleFromString(const AtomicString&); |
| 840 | 840 |
| 841 // If the only inherited changes in the parent element are independent, | 841 // If the only inherited changes in the parent element are independent, |
| 842 // these changes can be directly propagated to this element (the child). | 842 // these changes can be directly propagated to this element (the child). |
| 843 // If these conditions are met, propagates the changes to the current style | 843 // If these conditions are met, propagates the changes to the current style |
| 844 // and returns the new style. Otherwise, returns null. | 844 // and returns the new style. Otherwise, returns null. |
| 845 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); | 845 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); |
| 846 | 846 |
| 847 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*); | 847 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); |
| 848 void reattachPseudoElementLayoutTree(PseudoId); | 848 void reattachPseudoElementLayoutTree(PseudoId); |
| 849 void rebuildShadowRootLayoutTree(); | 849 void rebuildShadowRootLayoutTree(); |
| 850 inline void checkForEmptyStyleChange(); | 850 inline void checkForEmptyStyleChange(); |
| 851 | 851 |
| 852 void updatePseudoElement(PseudoId, StyleRecalcChange); | 852 void updatePseudoElement(PseudoId, StyleRecalcChange); |
| 853 bool updateFirstLetter(Element*); | 853 bool updateFirstLetter(Element*); |
| 854 | 854 |
| 855 inline void createPseudoElementIfNeeded(PseudoId); | 855 inline void createPseudoElementIfNeeded(PseudoId); |
| 856 | 856 |
| 857 ShadowRoot* shadowRoot() const; | 857 ShadowRoot* shadowRoot() const; |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1199 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1200 static T* create(const QualifiedName&, Document&) | 1200 static T* create(const QualifiedName&, Document&) |
| 1201 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1201 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1202 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1202 T* T::create(const QualifiedName& tagName, Document& document) { \ |
| 1203 return new T(tagName, document); \ | 1203 return new T(tagName, document); \ |
| 1204 } | 1204 } |
| 1205 | 1205 |
| 1206 } // namespace blink | 1206 } // namespace blink |
| 1207 | 1207 |
| 1208 #endif // Element_h | 1208 #endif // Element_h |
| OLD | NEW |