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

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

Issue 2522793002: Remove ShadowDOMV1 runtime flag (status=stable) (Closed)
Patch Set: rebased Created 4 years, 1 month 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 * (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. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * (C) 2007 Eric Seidel (eric@webkit.org) 9 * (C) 2007 Eric Seidel (eric@webkit.org)
10 * 10 *
(...skipping 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after
2155 return nullptr; 2155 return nullptr;
2156 } 2156 }
2157 document().setShadowCascadeOrder(ShadowCascadeOrder::ShadowCascadeV0); 2157 document().setShadowCascadeOrder(ShadowCascadeOrder::ShadowCascadeV0);
2158 2158
2159 return createShadowRootInternal(ShadowRootType::V0, exceptionState); 2159 return createShadowRootInternal(ShadowRootType::V0, exceptionState);
2160 } 2160 }
2161 2161
2162 ShadowRoot* Element::attachShadow(const ScriptState* scriptState, 2162 ShadowRoot* Element::attachShadow(const ScriptState* scriptState,
2163 const ShadowRootInit& shadowRootInitDict, 2163 const ShadowRootInit& shadowRootInitDict,
2164 ExceptionState& exceptionState) { 2164 ExceptionState& exceptionState) {
2165 DCHECK(RuntimeEnabledFeatures::shadowDOMV1Enabled());
2166
2167 HostsUsingFeatures::countMainWorldOnly( 2165 HostsUsingFeatures::countMainWorldOnly(
2168 scriptState, document(), 2166 scriptState, document(),
2169 HostsUsingFeatures::Feature::ElementAttachShadow); 2167 HostsUsingFeatures::Feature::ElementAttachShadow);
2170 2168
2171 const AtomicString& tagName = localName(); 2169 const AtomicString& tagName = localName();
2172 bool tagNameIsSupported = 2170 bool tagNameIsSupported =
2173 isV0CustomElement() || 2171 isV0CustomElement() ||
2174 getCustomElementState() != CustomElementState::Uncustomized || 2172 getCustomElementState() != CustomElementState::Uncustomized ||
2175 tagName == HTMLNames::articleTag || tagName == HTMLNames::asideTag || 2173 tagName == HTMLNames::articleTag || tagName == HTMLNames::asideTag ||
2176 tagName == HTMLNames::blockquoteTag || tagName == HTMLNames::bodyTag || 2174 tagName == HTMLNames::blockquoteTag || tagName == HTMLNames::bodyTag ||
(...skipping 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after
4089 } 4087 }
4090 4088
4091 DEFINE_TRACE_WRAPPERS(Element) { 4089 DEFINE_TRACE_WRAPPERS(Element) {
4092 if (hasRareData()) { 4090 if (hasRareData()) {
4093 visitor->traceWrappers(elementRareData()); 4091 visitor->traceWrappers(elementRareData());
4094 } 4092 }
4095 ContainerNode::traceWrappers(visitor); 4093 ContainerNode::traceWrappers(visitor);
4096 } 4094 }
4097 4095
4098 } // namespace blink 4096 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp ('k') | third_party/WebKit/Source/core/dom/Element.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698