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

Unified Diff: Source/core/html/HTMLCollection.cpp

Issue 315473002: Stop having HTMLNameCollection override HTMLCollection::virtualItemAfter() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 7 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: Source/core/html/HTMLCollection.cpp
diff --git a/Source/core/html/HTMLCollection.cpp b/Source/core/html/HTMLCollection.cpp
index 61c63c894218c6f3443aa8d4c4fa0e37d352e18a..83a79e47374c7e1366ccccaf69d4636b31a4095a 100644
--- a/Source/core/html/HTMLCollection.cpp
+++ b/Source/core/html/HTMLCollection.cpp
@@ -28,9 +28,11 @@
#include "core/dom/ClassCollection.h"
#include "core/dom/ElementTraversal.h"
#include "core/dom/NodeRareData.h"
+#include "core/html/DocumentNameCollection.h"
#include "core/html/HTMLElement.h"
#include "core/html/HTMLObjectElement.h"
#include "core/html/HTMLOptionElement.h"
+#include "core/html/WindowNameCollection.h"
#include "wtf/HashSet.h"
namespace WebCore {
@@ -206,6 +208,10 @@ template <> inline bool isMatchingElement(const HTMLCollection& htmlCollection,
return toTagCollection(htmlCollection).elementMatches(element);
case HTMLTagCollectionType:
return toHTMLTagCollection(htmlCollection).elementMatches(element);
+ case DocumentNamedItems:
+ return toDocumentNameCollection(htmlCollection).elementMatches(element);
+ case WindowNamedItems:
+ return toWindowNameCollection(htmlCollection).elementMatches(element);
default:
break;
}

Powered by Google App Engine
This is Rietveld 408576698