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

Unified Diff: Source/core/html/DocumentNameCollection.h

Issue 492453002: Make it clear a DocumentNameCollection can only contain HTMLElements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Clean up Created 6 years, 4 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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/DocumentNameCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/DocumentNameCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698