| 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 | 355 |
| 356 ShadowRoot* youngestShadowRoot() const; | 356 ShadowRoot* youngestShadowRoot() const; |
| 357 | 357 |
| 358 ShadowRoot* shadowRootIfV1() const; | 358 ShadowRoot* shadowRootIfV1() const; |
| 359 | 359 |
| 360 ShadowRoot& ensureUserAgentShadowRoot(); | 360 ShadowRoot& ensureUserAgentShadowRoot(); |
| 361 virtual void willAddFirstAuthorShadowRoot() { } | 361 virtual void willAddFirstAuthorShadowRoot() { } |
| 362 | 362 |
| 363 bool isInDescendantTreeOf(const Element* shadowHost) const; | 363 bool isInDescendantTreeOf(const Element* shadowHost) const; |
| 364 | 364 |
| 365 const ComputedStyle* ensureComputedStyle(PseudoId = NOPSEUDO); | 365 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); |
| 366 | 366 |
| 367 // Methods for indicating the style is affected by dynamic updates (e.g., ch
ildren changing, our position changing in our sibling list, etc.) | 367 // Methods for indicating the style is affected by dynamic updates (e.g., ch
ildren changing, our position changing in our sibling list, etc.) |
| 368 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp
ty); } | 368 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp
ty); } |
| 369 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } | 369 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } |
| 370 | 370 |
| 371 void setIsInCanvasSubtree(bool value) { setElementFlag(IsInCanvasSubtree, va
lue); } | 371 void setIsInCanvasSubtree(bool value) { setElementFlag(IsInCanvasSubtree, va
lue); } |
| 372 bool isInCanvasSubtree() const { return hasElementFlag(IsInCanvasSubtree); } | 372 bool isInCanvasSubtree() const { return hasElementFlag(IsInCanvasSubtree); } |
| 373 | 373 |
| 374 bool isUpgradedCustomElement() { return getCustomElementState() == Upgraded;
} | 374 bool isUpgradedCustomElement() { return getCustomElementState() == Upgraded;
} |
| 375 bool isUnresolvedCustomElement() { return getCustomElementState() == Waiting
ForUpgrade; } | 375 bool isUnresolvedCustomElement() { return getCustomElementState() == Waiting
ForUpgrade; } |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 void attributeChangedFromParserOrByCloning(const QualifiedName&, const Atomi
cString&, AttributeModificationReason); | 675 void attributeChangedFromParserOrByCloning(const QualifiedName&, const Atomi
cString&, AttributeModificationReason); |
| 676 | 676 |
| 677 #ifndef NDEBUG | 677 #ifndef NDEBUG |
| 678 void formatForDebugger(char* buffer, unsigned length) const override; | 678 void formatForDebugger(char* buffer, unsigned length) const override; |
| 679 #endif | 679 #endif |
| 680 | 680 |
| 681 bool pseudoStyleCacheIsInvalid(const ComputedStyle* currentStyle, ComputedSt
yle* newStyle); | 681 bool pseudoStyleCacheIsInvalid(const ComputedStyle* currentStyle, ComputedSt
yle* newStyle); |
| 682 | 682 |
| 683 void cancelFocusAppearanceUpdate(); | 683 void cancelFocusAppearanceUpdate(); |
| 684 | 684 |
| 685 const ComputedStyle* virtualEnsureComputedStyle(PseudoId pseudoElementSpecif
ier = NOPSEUDO) override { return ensureComputedStyle(pseudoElementSpecifier); } | 685 const ComputedStyle* virtualEnsureComputedStyle(PseudoId pseudoElementSpecif
ier = PseudoIdNone) override { return ensureComputedStyle(pseudoElementSpecifier
); } |
| 686 | 686 |
| 687 inline void updateCallbackSelectors(const ComputedStyle* oldStyle, const Com
putedStyle* newStyle); | 687 inline void updateCallbackSelectors(const ComputedStyle* oldStyle, const Com
putedStyle* newStyle); |
| 688 inline void removeCallbackSelectors(); | 688 inline void removeCallbackSelectors(); |
| 689 inline void addCallbackSelectors(); | 689 inline void addCallbackSelectors(); |
| 690 | 690 |
| 691 // cloneNode is private so that non-virtual cloneElementWithChildren and clo
neElementWithoutChildren | 691 // cloneNode is private so that non-virtual cloneElementWithChildren and clo
neElementWithoutChildren |
| 692 // are used instead. | 692 // are used instead. |
| 693 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) override; | 693 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) override; |
| 694 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil
dren(); | 694 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil
dren(); |
| 695 | 695 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 949 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 949 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 950 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 950 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 951 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 951 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 952 { \ | 952 { \ |
| 953 return adoptRefWillBeNoop(new T(tagName, document)); \ | 953 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 954 } | 954 } |
| 955 | 955 |
| 956 } // namespace blink | 956 } // namespace blink |
| 957 | 957 |
| 958 #endif // Element_h | 958 #endif // Element_h |
| OLD | NEW |