Chromium Code Reviews| Index: Source/core/dom/Document.cpp |
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
| index e3199112cca649bf8ae7e40a0ba871602fad2a2f..3a4bea201a8d675a4892f43c189a9ba4ea85f045 100644 |
| --- a/Source/core/dom/Document.cpp |
| +++ b/Source/core/dom/Document.cpp |
| @@ -733,7 +733,7 @@ PassRefPtr<Element> Document::createElement(const AtomicString& localName, const |
| return 0; |
| } |
| - if (RuntimeEnabledFeatures::customElementsEnabled() && !typeExtension.isNull() && !typeExtension.isEmpty()) |
| + if (RuntimeEnabledFeatures::customElementsEnabled() && !typeExtension.isEmpty()) |
| CustomElementRegistrationContext::setIsAttributeAndTypeExtension(element.get(), typeExtension); |
| return element; |
| @@ -760,7 +760,7 @@ PassRefPtr<Element> Document::createElementNS(const AtomicString& namespaceURI, |
| return 0; |
| } |
| - if (!typeExtension.isNull() && !typeExtension.isEmpty()) |
| + if (!typeExtension.isEmpty()) |
|
dominicc (has gone to gerrit)
2014/01/30 03:14:40
What about CustomElementConstructorBuilder.cpp/con
|
| CustomElementRegistrationContext::setIsAttributeAndTypeExtension(element.get(), typeExtension); |
| return element; |