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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 void inlineStyleChanged(); | 834 void inlineStyleChanged(); |
835 void setInlineStyleFromString(const AtomicString&); | 835 void setInlineStyleFromString(const AtomicString&); |
836 | 836 |
837 // If the only inherited changes in the parent element are independent, | 837 // If the only inherited changes in the parent element are independent, |
838 // these changes can be directly propagated to this element (the child). | 838 // these changes can be directly propagated to this element (the child). |
839 // If these conditions are met, propagates the changes to the current style | 839 // If these conditions are met, propagates the changes to the current style |
840 // and returns the new style. Otherwise, returns null. | 840 // and returns the new style. Otherwise, returns null. |
841 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); | 841 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); |
842 | 842 |
843 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*); | 843 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*); |
| 844 void reattachPseudoElementLayoutTree(PseudoId); |
| 845 void rebuildShadowRootLayoutTree(); |
844 inline void checkForEmptyStyleChange(); | 846 inline void checkForEmptyStyleChange(); |
845 | 847 |
846 void updatePseudoElement(PseudoId, StyleRecalcChange); | 848 void updatePseudoElement(PseudoId, StyleRecalcChange); |
847 bool updateFirstLetter(Element*); | 849 bool updateFirstLetter(Element*); |
848 | 850 |
849 inline void createPseudoElementIfNeeded(PseudoId); | 851 inline void createPseudoElementIfNeeded(PseudoId); |
850 | 852 |
851 ShadowRoot* shadowRoot() const; | 853 ShadowRoot* shadowRoot() const; |
852 | 854 |
853 // FIXME: Everyone should allow author shadows. | 855 // FIXME: Everyone should allow author shadows. |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1198 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1197 static T* create(const QualifiedName&, Document&) | 1199 static T* create(const QualifiedName&, Document&) |
1198 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1200 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1199 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1201 T* T::create(const QualifiedName& tagName, Document& document) { \ |
1200 return new T(tagName, document); \ | 1202 return new T(tagName, document); \ |
1201 } | 1203 } |
1202 | 1204 |
1203 } // namespace blink | 1205 } // namespace blink |
1204 | 1206 |
1205 #endif // Element_h | 1207 #endif // Element_h |
OLD | NEW |