Index: Source/core/dom/CustomElementRegistry.cpp |
diff --git a/Source/core/dom/CustomElementRegistry.cpp b/Source/core/dom/CustomElementRegistry.cpp |
index 8bdbf8fbf4d4981a32c9f7a76171402380e4b7f5..fd08e2135bc58ec26b69ab791ca31d117ac75cad 100644 |
--- a/Source/core/dom/CustomElementRegistry.cpp |
+++ b/Source/core/dom/CustomElementRegistry.cpp |
@@ -97,19 +97,19 @@ void CustomElementRegistry::registerElement(CustomElementConstructorBuilder* con |
} |
if (!constructorBuilder->validateOptions()) { |
- ec = INVALID_STATE_ERR; |
+ ec = InvalidStateError; |
return; |
} |
QualifiedName tagName = nullQName(); |
if (!constructorBuilder->findTagName(type, tagName)) { |
- ec = NAMESPACE_ERR; |
+ ec = NamespaceError; |
return; |
} |
ASSERT(tagName.namespaceURI() == HTMLNames::xhtmlNamespaceURI || tagName.namespaceURI() == SVGNames::svgNamespaceURI); |
if (m_definitions.contains(type)) { |
- ec = INVALID_STATE_ERR; |
+ ec = InvalidStateError; |
return; |
} |
@@ -118,7 +118,7 @@ void CustomElementRegistry::registerElement(CustomElementConstructorBuilder* con |
// Consulting the constructor builder could execute script and |
// kill the document. |
if (!document()) { |
- ec = INVALID_STATE_ERR; |
+ ec = InvalidStateError; |
return; |
} |