Index: Source/core/html/DocumentNameCollection.h |
diff --git a/Source/core/html/DocumentNameCollection.h b/Source/core/html/DocumentNameCollection.h |
index bf0c7ce8bf7891a82c4c7fec4e45519ef0b74467..954993b5082937f4396d59f3c5569f19e9420258 100644 |
--- a/Source/core/html/DocumentNameCollection.h |
+++ b/Source/core/html/DocumentNameCollection.h |
@@ -5,6 +5,7 @@ |
#ifndef DocumentNameCollection_h |
#define DocumentNameCollection_h |
+#include "core/html/HTMLElement.h" |
#include "core/html/HTMLNameCollection.h" |
namespace blink { |
@@ -17,7 +18,9 @@ public: |
return adoptRefWillBeNoop(new DocumentNameCollection(document, name)); |
} |
- bool elementMatches(const Element&) const; |
+ HTMLElement* item(unsigned offset) const { return toHTMLElement(HTMLNameCollection::item(offset)); } |
+ |
+ bool elementMatches(const HTMLElement&) const; |
private: |
DocumentNameCollection(ContainerNode& document, const AtomicString& name); |