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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 void setNeedsCompositingUpdate(); | 321 void setNeedsCompositingUpdate(); |
322 | 322 |
323 bool supportsStyleSharing() const; | 323 bool supportsStyleSharing() const; |
324 | 324 |
325 ElementShadow* shadow() const; | 325 ElementShadow* shadow() const; |
326 ElementShadow& ensureShadow(); | 326 ElementShadow& ensureShadow(); |
327 PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRoot(ExceptionState&); | 327 PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRoot(ExceptionState&); |
328 ShadowRoot* shadowRoot() const; | 328 ShadowRoot* shadowRoot() const; |
329 ShadowRoot* youngestShadowRoot() const; | 329 ShadowRoot* youngestShadowRoot() const; |
330 | 330 |
331 bool hasAuthorShadowRoot() const { return shadowRoot(); } | 331 bool hasOpenShadowRoot() const { return shadowRoot(); } |
332 ShadowRoot* userAgentShadowRoot() const; | 332 ShadowRoot* closedShadowRoot() const; |
333 ShadowRoot& ensureUserAgentShadowRoot(); | 333 ShadowRoot& ensureClosedShadowRoot(); |
334 virtual void willAddFirstAuthorShadowRoot() { } | 334 virtual void willAddFirstOpenShadowRoot() { } |
335 | 335 |
336 bool isInDescendantTreeOf(const Element* shadowHost) const; | 336 bool isInDescendantTreeOf(const Element* shadowHost) const; |
337 | 337 |
338 LayoutStyle* computedStyle(PseudoId = NOPSEUDO); | 338 LayoutStyle* computedStyle(PseudoId = NOPSEUDO); |
339 | 339 |
340 // Methods for indicating the style is affected by dynamic updates (e.g., ch
ildren changing, our position changing in our sibling list, etc.) | 340 // Methods for indicating the style is affected by dynamic updates (e.g., ch
ildren changing, our position changing in our sibling list, etc.) |
341 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp
ty); } | 341 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp
ty); } |
342 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } | 342 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } |
343 | 343 |
344 void setIsInCanvasSubtree(bool value) { setElementFlag(IsInCanvasSubtree, va
lue); } | 344 void setIsInCanvasSubtree(bool value) { setElementFlag(IsInCanvasSubtree, va
lue); } |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 | 571 |
572 inline void checkForEmptyStyleChange(); | 572 inline void checkForEmptyStyleChange(); |
573 | 573 |
574 void updatePseudoElement(PseudoId, StyleRecalcChange); | 574 void updatePseudoElement(PseudoId, StyleRecalcChange); |
575 bool updateFirstLetter(Element*); | 575 bool updateFirstLetter(Element*); |
576 | 576 |
577 inline void createPseudoElementIfNeeded(PseudoId); | 577 inline void createPseudoElementIfNeeded(PseudoId); |
578 | 578 |
579 // FIXME: Everyone should allow author shadows. | 579 // FIXME: Everyone should allow author shadows. |
580 virtual bool areAuthorShadowsAllowed() const { return true; } | 580 virtual bool areAuthorShadowsAllowed() const { return true; } |
581 virtual void didAddUserAgentShadowRoot(ShadowRoot&) { } | 581 virtual void didAddClosedShadowRoot(ShadowRoot&) { } |
582 virtual bool alwaysCreateUserAgentShadowRoot() const { return false; } | 582 virtual bool alwaysCreateClosedShadowRoot() const { return false; } |
583 | 583 |
584 // FIXME: Remove the need for Attr to call willModifyAttribute/didModifyAttr
ibute. | 584 // FIXME: Remove the need for Attr to call willModifyAttribute/didModifyAttr
ibute. |
585 friend class Attr; | 585 friend class Attr; |
586 | 586 |
587 enum SynchronizationOfLazyAttribute { NotInSynchronizationOfLazyAttribute =
0, InSynchronizationOfLazyAttribute }; | 587 enum SynchronizationOfLazyAttribute { NotInSynchronizationOfLazyAttribute =
0, InSynchronizationOfLazyAttribute }; |
588 | 588 |
589 void didAddAttribute(const QualifiedName&, const AtomicString&); | 589 void didAddAttribute(const QualifiedName&, const AtomicString&); |
590 void willModifyAttribute(const QualifiedName&, const AtomicString& oldValue,
const AtomicString& newValue); | 590 void willModifyAttribute(const QualifiedName&, const AtomicString& oldValue,
const AtomicString& newValue); |
591 void didModifyAttribute(const QualifiedName&, const AtomicString&); | 591 void didModifyAttribute(const QualifiedName&, const AtomicString&); |
592 void didRemoveAttribute(const QualifiedName&); | 592 void didRemoveAttribute(const QualifiedName&); |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 879 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
880 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 880 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
881 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 881 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
882 { \ | 882 { \ |
883 return adoptRefWillBeNoop(new T(tagName, document)); \ | 883 return adoptRefWillBeNoop(new T(tagName, document)); \ |
884 } | 884 } |
885 | 885 |
886 } // namespace | 886 } // namespace |
887 | 887 |
888 #endif // Element_h | 888 #endif // Element_h |
OLD | NEW |