| 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 * (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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |