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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2258023003: Remove first argument for shoudCreateCustomElement() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 9879a7cc0e0173a8be94dde019fb5cb86f1c99fb..758cfb9ed5c23e015338da211994c7ad1189cdfa 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -639,7 +639,7 @@ Element* Document::createElement(const AtomicString& name, ExceptionState& excep
}
if (isXHTMLDocument() || isHTMLDocument()) {
- if (CustomElement::shouldCreateCustomElement(*this, name))
+ if (CustomElement::shouldCreateCustomElement(name))
return CustomElement::createCustomElementSync(*this, name, exceptionState);
return HTMLElementFactory::createHTMLElement(convertLocalName(name), *this, 0, CreatedByCreateElement);
}
@@ -656,7 +656,7 @@ Element* Document::createElement(const AtomicString& localName, const AtomicStri
Element* element;
- if (CustomElement::shouldCreateCustomElement(*this, localName)) {
+ if (CustomElement::shouldCreateCustomElement(localName)) {
element = CustomElement::createCustomElementSync(*this, localName, exceptionState);
} else if (V0CustomElement::isValidName(localName) && registrationContext()) {
element = registrationContext()->createCustomTagElement(*this, QualifiedName(nullAtom, convertLocalName(localName), xhtmlNamespaceURI));
@@ -693,7 +693,7 @@ Element* Document::createElementNS(const AtomicString& namespaceURI, const Atomi
if (qName == QualifiedName::null())
return nullptr;
- if (CustomElement::shouldCreateCustomElement(*this, qName))
+ if (CustomElement::shouldCreateCustomElement(qName))
return CustomElement::createCustomElementSync(*this, qName, exceptionState);
return createElement(qName, CreatedByCreateElement);
}
@@ -705,7 +705,7 @@ Element* Document::createElementNS(const AtomicString& namespaceURI, const Atomi
return nullptr;
Element* element;
- if (CustomElement::shouldCreateCustomElement(*this, qName))
+ if (CustomElement::shouldCreateCustomElement(qName))
element = CustomElement::createCustomElementSync(*this, qName, exceptionState);
else if (V0CustomElement::isValidName(qName.localName()) && registrationContext())
element = registrationContext()->createCustomTagElement(*this, qName);

Powered by Google App Engine
This is Rietveld 408576698