| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 void setNeedsCompositingUpdate(); | 322 void setNeedsCompositingUpdate(); |
| 323 | 323 |
| 324 bool supportsStyleSharing() const; | 324 bool supportsStyleSharing() const; |
| 325 | 325 |
| 326 ElementShadow* shadow() const; | 326 ElementShadow* shadow() const; |
| 327 ElementShadow& ensureShadow(); | 327 ElementShadow& ensureShadow(); |
| 328 // If type of ShadowRoot (either closed or open) is explicitly specified, cr
eation of multiple | 328 // If type of ShadowRoot (either closed or open) is explicitly specified, cr
eation of multiple |
| 329 // shadow roots is prohibited in any combination and throws an exception. Mu
ltiple shadow roots | 329 // shadow roots is prohibited in any combination and throws an exception. Mu
ltiple shadow roots |
| 330 // are allowed only when createShadowRoot() is used without any parameters f
rom JavaScript. | 330 // are allowed only when createShadowRoot() is used without any parameters f
rom JavaScript. |
| 331 PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRoot(const ScriptState*, Exce
ptionState&); | 331 PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRoot(const ScriptState*, Exce
ptionState&); |
| 332 PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRoot(const ScriptState*, cons
t ShadowRootInit&, ExceptionState&); | 332 PassRefPtrWillBeRawPtr<ShadowRoot> attachShadow(const ScriptState*, const Sh
adowRootInit&, ExceptionState&); |
| 333 PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRootInternal(ShadowRootType,
ExceptionState&); | 333 PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRootInternal(ShadowRootType,
ExceptionState&); |
| 334 | 334 |
| 335 ShadowRoot* openShadowRoot() const; | 335 ShadowRoot* openShadowRoot() const; |
| 336 ShadowRoot* closedShadowRoot() const; | 336 ShadowRoot* closedShadowRoot() const; |
| 337 ShadowRoot* authorShadowRoot() const; | 337 ShadowRoot* authorShadowRoot() const; |
| 338 ShadowRoot* userAgentShadowRoot() const; | 338 ShadowRoot* userAgentShadowRoot() const; |
| 339 | 339 |
| 340 ShadowRoot* youngestShadowRoot() const; | 340 ShadowRoot* youngestShadowRoot() const; |
| 341 | 341 |
| 342 ShadowRoot& ensureUserAgentShadowRoot(); | 342 ShadowRoot& ensureUserAgentShadowRoot(); |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 903 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 904 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 904 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 905 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 905 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 906 { \ | 906 { \ |
| 907 return adoptRefWillBeNoop(new T(tagName, document)); \ | 907 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 908 } | 908 } |
| 909 | 909 |
| 910 } // namespace | 910 } // namespace |
| 911 | 911 |
| 912 #endif // Element_h | 912 #endif // Element_h |
| OLD | NEW |