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

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

Issue 2173623003: Add "Failed" custom element state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid multiple toElement Created 4 years, 4 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/Source/core/dom/Element.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | 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 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 } 1952 }
1953 1953
1954 ShadowRoot* Element::attachShadow(const ScriptState* scriptState, const ShadowRo otInit& shadowRootInitDict, ExceptionState& exceptionState) 1954 ShadowRoot* Element::attachShadow(const ScriptState* scriptState, const ShadowRo otInit& shadowRootInitDict, ExceptionState& exceptionState)
1955 { 1955 {
1956 DCHECK(RuntimeEnabledFeatures::shadowDOMV1Enabled()); 1956 DCHECK(RuntimeEnabledFeatures::shadowDOMV1Enabled());
1957 1957
1958 HostsUsingFeatures::countMainWorldOnly(scriptState, document(), HostsUsingFe atures::Feature::ElementAttachShadow); 1958 HostsUsingFeatures::countMainWorldOnly(scriptState, document(), HostsUsingFe atures::Feature::ElementAttachShadow);
1959 1959
1960 const AtomicString& tagName = localName(); 1960 const AtomicString& tagName = localName();
1961 bool tagNameIsSupported = isV0CustomElement() 1961 bool tagNameIsSupported = isV0CustomElement()
1962 || isCustomElement() 1962 || getCustomElementState() != CustomElementState::Uncustomized
1963 || tagName == HTMLNames::articleTag 1963 || tagName == HTMLNames::articleTag
1964 || tagName == HTMLNames::asideTag 1964 || tagName == HTMLNames::asideTag
1965 || tagName == HTMLNames::blockquoteTag 1965 || tagName == HTMLNames::blockquoteTag
1966 || tagName == HTMLNames::bodyTag 1966 || tagName == HTMLNames::bodyTag
1967 || tagName == HTMLNames::divTag 1967 || tagName == HTMLNames::divTag
1968 || tagName == HTMLNames::footerTag 1968 || tagName == HTMLNames::footerTag
1969 || tagName == HTMLNames::h1Tag 1969 || tagName == HTMLNames::h1Tag
1970 || tagName == HTMLNames::h2Tag 1970 || tagName == HTMLNames::h2Tag
1971 || tagName == HTMLNames::h3Tag 1971 || tagName == HTMLNames::h3Tag
1972 || tagName == HTMLNames::h4Tag 1972 || tagName == HTMLNames::h4Tag
(...skipping 1796 matching lines...) Expand 10 before | Expand all | Expand 10 after
3769 3769
3770 DEFINE_TRACE_WRAPPERS(Element) 3770 DEFINE_TRACE_WRAPPERS(Element)
3771 { 3771 {
3772 if (hasRareData()) { 3772 if (hasRareData()) {
3773 visitor->traceWrappers(elementRareData()); 3773 visitor->traceWrappers(elementRareData());
3774 } 3774 }
3775 ContainerNode::traceWrappers(visitor); 3775 ContainerNode::traceWrappers(visitor);
3776 } 3776 }
3777 3777
3778 } // namespace blink 3778 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698