Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 1408443003: Add Element.attachShadow under the ShadowDOMV1 runtime flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rewrite a test Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698