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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 bool hasEquivalentAttributes(const Element* other) const; | 410 bool hasEquivalentAttributes(const Element* other) const; |
411 | 411 |
412 virtual void copyNonAttributePropertiesFromElement(const Element&) {} | 412 virtual void copyNonAttributePropertiesFromElement(const Element&) {} |
413 | 413 |
414 void attachLayoutTree(const AttachContext& = AttachContext()) override; | 414 void attachLayoutTree(const AttachContext& = AttachContext()) override; |
415 void detachLayoutTree(const AttachContext& = AttachContext()) override; | 415 void detachLayoutTree(const AttachContext& = AttachContext()) override; |
416 | 416 |
417 virtual LayoutObject* createLayoutObject(const ComputedStyle&); | 417 virtual LayoutObject* createLayoutObject(const ComputedStyle&); |
418 virtual bool layoutObjectIsNeeded(const ComputedStyle&); | 418 virtual bool layoutObjectIsNeeded(const ComputedStyle&); |
419 void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr); | 419 void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr); |
420 StyleRecalcChange rebuildLayoutTree(); | 420 void rebuildLayoutTree(); |
421 void pseudoStateChanged(CSSSelector::PseudoType); | 421 void pseudoStateChanged(CSSSelector::PseudoType); |
422 void setAnimationStyleChange(bool); | 422 void setAnimationStyleChange(bool); |
423 void clearAnimationStyleChange(); | 423 void clearAnimationStyleChange(); |
424 void setNeedsAnimationStyleRecalc(); | 424 void setNeedsAnimationStyleRecalc(); |
425 | 425 |
426 void setNeedsCompositingUpdate(); | 426 void setNeedsCompositingUpdate(); |
427 | 427 |
428 bool supportsStyleSharing() const; | 428 bool supportsStyleSharing() const; |
429 | 429 |
430 ElementShadow* shadow() const; | 430 ElementShadow* shadow() const; |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, | 763 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, |
764 CSSPropertyID, | 764 CSSPropertyID, |
765 const CSSValue*); | 765 const CSSValue*); |
766 | 766 |
767 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 767 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
768 void removedFrom(ContainerNode*) override; | 768 void removedFrom(ContainerNode*) override; |
769 void childrenChanged(const ChildrenChange&) override; | 769 void childrenChanged(const ChildrenChange&) override; |
770 | 770 |
771 virtual void willRecalcStyle(StyleRecalcChange); | 771 virtual void willRecalcStyle(StyleRecalcChange); |
772 virtual void didRecalcStyle(); | 772 virtual void didRecalcStyle(); |
| 773 virtual void didRebuildLayoutTree(); |
773 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject(); | 774 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject(); |
774 | 775 |
775 virtual bool shouldRegisterAsNamedItem() const { return false; } | 776 virtual bool shouldRegisterAsNamedItem() const { return false; } |
776 virtual bool shouldRegisterAsExtraNamedItem() const { return false; } | 777 virtual bool shouldRegisterAsExtraNamedItem() const { return false; } |
777 | 778 |
778 bool supportsSpatialNavigationFocus() const; | 779 bool supportsSpatialNavigationFocus() const; |
779 | 780 |
780 void clearTabIndexExplicitlyIfNeeded(); | 781 void clearTabIndexExplicitlyIfNeeded(); |
781 void setTabIndexExplicitly(); | 782 void setTabIndexExplicitly(); |
782 // Subclasses may override this method to affect focusability. This method | 783 // Subclasses may override this method to affect focusability. This method |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 void inlineStyleChanged(); | 830 void inlineStyleChanged(); |
830 void setInlineStyleFromString(const AtomicString&); | 831 void setInlineStyleFromString(const AtomicString&); |
831 | 832 |
832 // If the only inherited changes in the parent element are independent, | 833 // If the only inherited changes in the parent element are independent, |
833 // these changes can be directly propagated to this element (the child). | 834 // these changes can be directly propagated to this element (the child). |
834 // If these conditions are met, propagates the changes to the current style | 835 // If these conditions are met, propagates the changes to the current style |
835 // and returns the new style. Otherwise, returns null. | 836 // and returns the new style. Otherwise, returns null. |
836 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); | 837 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); |
837 | 838 |
838 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*); | 839 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*); |
| 840 void reattachPseudoElementLayoutTree(PseudoId); |
| 841 void rebuildShadowRootLayoutTree(); |
839 inline void checkForEmptyStyleChange(); | 842 inline void checkForEmptyStyleChange(); |
840 | 843 |
841 void updatePseudoElement(PseudoId, StyleRecalcChange); | 844 void updatePseudoElement(PseudoId, StyleRecalcChange); |
842 bool updateFirstLetter(Element*); | 845 bool updateFirstLetter(Element*); |
843 | 846 |
844 inline void createPseudoElementIfNeeded(PseudoId); | 847 inline void createPseudoElementIfNeeded(PseudoId); |
845 | 848 |
846 ShadowRoot* shadowRoot() const; | 849 ShadowRoot* shadowRoot() const; |
847 | 850 |
848 // FIXME: Everyone should allow author shadows. | 851 // FIXME: Everyone should allow author shadows. |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1194 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1192 static T* create(const QualifiedName&, Document&) | 1195 static T* create(const QualifiedName&, Document&) |
1193 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1196 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1194 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1197 T* T::create(const QualifiedName& tagName, Document& document) { \ |
1195 return new T(tagName, document); \ | 1198 return new T(tagName, document); \ |
1196 } | 1199 } |
1197 | 1200 |
1198 } // namespace blink | 1201 } // namespace blink |
1199 | 1202 |
1200 #endif // Element_h | 1203 #endif // Element_h |
OLD | NEW |