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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 PassRefPtrWillBeRawPtr<ShadowRoot> attachShadow(const ScriptState*, const Sh
adowRootInit&, ExceptionState&); | 347 PassRefPtrWillBeRawPtr<ShadowRoot> attachShadow(const ScriptState*, const Sh
adowRootInit&, ExceptionState&); |
348 PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRootInternal(ShadowRootType,
ExceptionState&); | 348 PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRootInternal(ShadowRootType,
ExceptionState&); |
349 | 349 |
350 ShadowRoot* openShadowRoot() const; | 350 ShadowRoot* openShadowRoot() const; |
351 ShadowRoot* closedShadowRoot() const; | 351 ShadowRoot* closedShadowRoot() const; |
352 ShadowRoot* authorShadowRoot() const; | 352 ShadowRoot* authorShadowRoot() const; |
353 ShadowRoot* userAgentShadowRoot() const; | 353 ShadowRoot* userAgentShadowRoot() const; |
354 | 354 |
355 ShadowRoot* youngestShadowRoot() const; | 355 ShadowRoot* youngestShadowRoot() const; |
356 | 356 |
| 357 ShadowRoot* shadowRootIfV1() const; |
| 358 |
357 ShadowRoot& ensureUserAgentShadowRoot(); | 359 ShadowRoot& ensureUserAgentShadowRoot(); |
358 virtual void willAddFirstAuthorShadowRoot() { } | 360 virtual void willAddFirstAuthorShadowRoot() { } |
359 | 361 |
360 bool isInDescendantTreeOf(const Element* shadowHost) const; | 362 bool isInDescendantTreeOf(const Element* shadowHost) const; |
361 | 363 |
362 const ComputedStyle* ensureComputedStyle(PseudoId = NOPSEUDO); | 364 const ComputedStyle* ensureComputedStyle(PseudoId = NOPSEUDO); |
363 | 365 |
364 // Methods for indicating the style is affected by dynamic updates (e.g., ch
ildren changing, our position changing in our sibling list, etc.) | 366 // Methods for indicating the style is affected by dynamic updates (e.g., ch
ildren changing, our position changing in our sibling list, etc.) |
365 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp
ty); } | 367 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp
ty); } |
366 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } | 368 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 935 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
934 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 936 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
935 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 937 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
936 { \ | 938 { \ |
937 return adoptRefWillBeNoop(new T(tagName, document)); \ | 939 return adoptRefWillBeNoop(new T(tagName, document)); \ |
938 } | 940 } |
939 | 941 |
940 } // namespace | 942 } // namespace |
941 | 943 |
942 #endif // Element_h | 944 #endif // Element_h |
OLD | NEW |