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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 831993005: Remove custom element type extensions. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Document.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Document.cpp
diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
index 8fcd7ddb0e43a7cb9bf24d4ecd76fe194d6aa59a..07fad49696dbe448113f4223ab7d8139f9ce29d1 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -445,29 +445,6 @@ PassRefPtr<Element> Document::createElement(const AtomicString& name, ExceptionS
return Element::create(QualifiedName(name), this);
}
-PassRefPtr<Element> Document::createElement(const AtomicString& localName, const AtomicString& typeExtension, ExceptionState& exceptionState)
-{
- if (!isValidName(localName)) {
- exceptionState.throwDOMException(InvalidCharacterError, "The tag name provided ('" + localName + "') is not a valid name.");
- return nullptr;
- }
-
- RefPtr<Element> element;
-
- if (CustomElement::isValidName(localName) && registrationContext()) {
- element = registrationContext()->createCustomTagElement(*this, QualifiedName(localName));
- } else {
- element = createElement(localName, exceptionState);
- if (exceptionState.hadException())
- return nullptr;
- }
-
- if (!typeExtension.isEmpty())
- CustomElementRegistrationContext::setIsAttributeAndTypeExtension(element.get(), typeExtension);
-
- return element.release();
-}
-
ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicString& name, ExceptionState& exceptionState)
{
return registerElement(scriptState, name, Dictionary(), exceptionState);
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698