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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 bool hasEquivalentAttributes(const Element* other) const; | 393 bool hasEquivalentAttributes(const Element* other) const; |
394 | 394 |
395 virtual void copyNonAttributePropertiesFromElement(const Element&) {} | 395 virtual void copyNonAttributePropertiesFromElement(const Element&) {} |
396 | 396 |
397 void attachLayoutTree(const AttachContext& = AttachContext()) override; | 397 void attachLayoutTree(const AttachContext& = AttachContext()) override; |
398 void detachLayoutTree(const AttachContext& = AttachContext()) override; | 398 void detachLayoutTree(const AttachContext& = AttachContext()) override; |
399 | 399 |
400 virtual LayoutObject* createLayoutObject(const ComputedStyle&); | 400 virtual LayoutObject* createLayoutObject(const ComputedStyle&); |
401 virtual bool layoutObjectIsNeeded(const ComputedStyle&); | 401 virtual bool layoutObjectIsNeeded(const ComputedStyle&); |
402 void recalcStyle(StyleRecalcChange); | 402 void recalcStyle(StyleRecalcChange); |
403 StyleRecalcChange rebuildLayoutTree(); | 403 void rebuildLayoutTree(); |
404 void pseudoStateChanged(CSSSelector::PseudoType); | 404 void pseudoStateChanged(CSSSelector::PseudoType); |
405 void setAnimationStyleChange(bool); | 405 void setAnimationStyleChange(bool); |
406 void clearAnimationStyleChange(); | 406 void clearAnimationStyleChange(); |
407 void setNeedsAnimationStyleRecalc(); | 407 void setNeedsAnimationStyleRecalc(); |
408 | 408 |
409 void setNeedsCompositingUpdate(); | 409 void setNeedsCompositingUpdate(); |
410 | 410 |
411 bool supportsStyleSharing() const; | 411 bool supportsStyleSharing() const; |
412 | 412 |
413 ElementShadow* shadow() const; | 413 ElementShadow* shadow() const; |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 void inlineStyleChanged(); | 816 void inlineStyleChanged(); |
817 void setInlineStyleFromString(const AtomicString&); | 817 void setInlineStyleFromString(const AtomicString&); |
818 | 818 |
819 // If the only inherited changes in the parent element are independent, | 819 // If the only inherited changes in the parent element are independent, |
820 // these changes can be directly propagated to this element (the child). | 820 // these changes can be directly propagated to this element (the child). |
821 // If these conditions are met, propagates the changes to the current style | 821 // If these conditions are met, propagates the changes to the current style |
822 // and returns the new style. Otherwise, returns null. | 822 // and returns the new style. Otherwise, returns null. |
823 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); | 823 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); |
824 | 824 |
825 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); | 825 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); |
| 826 void reattachPseudoElementLayoutTree(PseudoId); |
| 827 void rebuildShadowRootLayoutTree(); |
826 inline void checkForEmptyStyleChange(); | 828 inline void checkForEmptyStyleChange(); |
827 | 829 |
828 void updatePseudoElement(PseudoId, StyleRecalcChange); | 830 void updatePseudoElement(PseudoId, StyleRecalcChange); |
829 bool updateFirstLetter(Element*); | 831 bool updateFirstLetter(Element*); |
830 | 832 |
831 inline void createPseudoElementIfNeeded(PseudoId); | 833 inline void createPseudoElementIfNeeded(PseudoId); |
832 | 834 |
833 ShadowRoot* shadowRoot() const; | 835 ShadowRoot* shadowRoot() const; |
834 | 836 |
835 // FIXME: Everyone should allow author shadows. | 837 // FIXME: Everyone should allow author shadows. |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1159 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1158 static T* create(const QualifiedName&, Document&) | 1160 static T* create(const QualifiedName&, Document&) |
1159 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1161 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1160 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1162 T* T::create(const QualifiedName& tagName, Document& document) { \ |
1161 return new T(tagName, document); \ | 1163 return new T(tagName, document); \ |
1162 } | 1164 } |
1163 | 1165 |
1164 } // namespace blink | 1166 } // namespace blink |
1165 | 1167 |
1166 #endif // Element_h | 1168 #endif // Element_h |
OLD | NEW |