Index: third_party/WebKit/Source/core/dom/ContainerNode.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
index 2ee1257276b57493dbe2713a342f4d9e6fd0b660..d9edc6db0fe24d1cb2055611e9a6d1e2a0799809 100644 |
--- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
@@ -1465,9 +1465,6 @@ void ContainerNode::invalidateNodeListCachesInAncestors(const QualifiedName* att |
PassRefPtrWillBeRawPtr<TagCollection> ContainerNode::getElementsByTagName(const AtomicString& localName) |
{ |
- if (localName.isNull()) |
- return nullptr; |
- |
if (document().isHTMLDocument()) |
return ensureCachedCollection<HTMLTagCollection>(HTMLTagCollectionType, localName); |
return ensureCachedCollection<TagCollection>(TagCollectionType, localName); |
@@ -1475,9 +1472,6 @@ PassRefPtrWillBeRawPtr<TagCollection> ContainerNode::getElementsByTagName(const |
PassRefPtrWillBeRawPtr<TagCollection> ContainerNode::getElementsByTagNameNS(const AtomicString& namespaceURI, const AtomicString& localName) |
{ |
- if (localName.isNull()) |
- return nullptr; |
- |
if (namespaceURI == starAtom) |
return getElementsByTagName(localName); |