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

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

Issue 2092703002: Support Custom Elements v1 in attachShadow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/attach-shadow-safelist.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 } 1930 }
1931 1931
1932 ShadowRoot* Element::attachShadow(const ScriptState* scriptState, const ShadowRo otInit& shadowRootInitDict, ExceptionState& exceptionState) 1932 ShadowRoot* Element::attachShadow(const ScriptState* scriptState, const ShadowRo otInit& shadowRootInitDict, ExceptionState& exceptionState)
1933 { 1933 {
1934 DCHECK(RuntimeEnabledFeatures::shadowDOMV1Enabled()); 1934 DCHECK(RuntimeEnabledFeatures::shadowDOMV1Enabled());
1935 1935
1936 HostsUsingFeatures::countMainWorldOnly(scriptState, document(), HostsUsingFe atures::Feature::ElementAttachShadow); 1936 HostsUsingFeatures::countMainWorldOnly(scriptState, document(), HostsUsingFe atures::Feature::ElementAttachShadow);
1937 1937
1938 const AtomicString& tagName = localName(); 1938 const AtomicString& tagName = localName();
1939 bool tagNameIsSupported = isV0CustomElement() 1939 bool tagNameIsSupported = isV0CustomElement()
1940 || isCustomElement()
1940 || tagName == HTMLNames::articleTag 1941 || tagName == HTMLNames::articleTag
1941 || tagName == HTMLNames::asideTag 1942 || tagName == HTMLNames::asideTag
1942 || tagName == HTMLNames::blockquoteTag 1943 || tagName == HTMLNames::blockquoteTag
1943 || tagName == HTMLNames::bodyTag 1944 || tagName == HTMLNames::bodyTag
1944 || tagName == HTMLNames::divTag 1945 || tagName == HTMLNames::divTag
1945 || tagName == HTMLNames::footerTag 1946 || tagName == HTMLNames::footerTag
1946 || tagName == HTMLNames::h1Tag 1947 || tagName == HTMLNames::h1Tag
1947 || tagName == HTMLNames::h2Tag 1948 || tagName == HTMLNames::h2Tag
1948 || tagName == HTMLNames::h3Tag 1949 || tagName == HTMLNames::h3Tag
1949 || tagName == HTMLNames::h4Tag 1950 || tagName == HTMLNames::h4Tag
(...skipping 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after
3722 3723
3723 DEFINE_TRACE_WRAPPERS(Element) 3724 DEFINE_TRACE_WRAPPERS(Element)
3724 { 3725 {
3725 if (hasRareData()) { 3726 if (hasRareData()) {
3726 visitor->traceWrappers(elementRareData()); 3727 visitor->traceWrappers(elementRareData());
3727 } 3728 }
3728 ContainerNode::traceWrappers(visitor); 3729 ContainerNode::traceWrappers(visitor);
3729 } 3730 }
3730 3731
3731 } // namespace blink 3732 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/attach-shadow-safelist.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698