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, Text* nextTextSibling = nullptr); | 402 void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr); |
403 StyleRecalcChange rebuildLayoutTree(); | |
nainar
2016/10/07 05:05:05
Moved this here because it will need to be accesse
| |
403 void pseudoStateChanged(CSSSelector::PseudoType); | 404 void pseudoStateChanged(CSSSelector::PseudoType); |
404 void setAnimationStyleChange(bool); | 405 void setAnimationStyleChange(bool); |
405 void clearAnimationStyleChange(); | 406 void clearAnimationStyleChange(); |
406 void setNeedsAnimationStyleRecalc(); | 407 void setNeedsAnimationStyleRecalc(); |
407 | 408 |
408 void setNeedsCompositingUpdate(); | 409 void setNeedsCompositingUpdate(); |
409 | 410 |
410 bool supportsStyleSharing() const; | 411 bool supportsStyleSharing() const; |
411 | 412 |
412 ElementShadow* shadow() const; | 413 ElementShadow* shadow() const; |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
808 void inlineStyleChanged(); | 809 void inlineStyleChanged(); |
809 void setInlineStyleFromString(const AtomicString&); | 810 void setInlineStyleFromString(const AtomicString&); |
810 | 811 |
811 // If the only inherited changes in the parent element are independent, | 812 // If the only inherited changes in the parent element are independent, |
812 // these changes can be directly propagated to this element (the child). | 813 // these changes can be directly propagated to this element (the child). |
813 // If these conditions are met, propagates the changes to the current style | 814 // If these conditions are met, propagates the changes to the current style |
814 // and returns the new style. Otherwise, returns null. | 815 // and returns the new style. Otherwise, returns null. |
815 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); | 816 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); |
816 | 817 |
817 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); | 818 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); |
818 StyleRecalcChange rebuildLayoutTree(); | 819 void reattachPseudoElementLayoutTree(PseudoId); |
819 | |
820 inline void checkForEmptyStyleChange(); | 820 inline void checkForEmptyStyleChange(); |
821 | 821 |
822 void updatePseudoElement(PseudoId, StyleRecalcChange); | 822 void updatePseudoElement(PseudoId, StyleRecalcChange); |
823 bool updateFirstLetter(Element*); | 823 bool updateFirstLetter(Element*); |
824 | 824 |
825 inline void createPseudoElementIfNeeded(PseudoId); | 825 inline void createPseudoElementIfNeeded(PseudoId); |
826 | 826 |
827 ShadowRoot* shadowRoot() const; | 827 ShadowRoot* shadowRoot() const; |
828 | 828 |
829 // FIXME: Everyone should allow author shadows. | 829 // FIXME: Everyone should allow author shadows. |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1152 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1152 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1153 static T* create(const QualifiedName&, Document&) | 1153 static T* create(const QualifiedName&, Document&) |
1154 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1154 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1155 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1155 T* T::create(const QualifiedName& tagName, Document& document) { \ |
1156 return new T(tagName, document); \ | 1156 return new T(tagName, document); \ |
1157 } | 1157 } |
1158 | 1158 |
1159 } // namespace blink | 1159 } // namespace blink |
1160 | 1160 |
1161 #endif // Element_h | 1161 #endif // Element_h |
OLD | NEW |