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

Unified Diff: Source/core/dom/NamedNodesCollection.h

Issue 148013008: Use stricter typing for HTMLCollection named getter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp ('k') | Source/core/html/HTMLAllCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/NamedNodesCollection.h
diff --git a/Source/core/dom/NamedNodesCollection.h b/Source/core/dom/NamedNodesCollection.h
index b202bcf238f728c0c1cabf77bae8aaeab45ce61f..bfb1a697bd1159a255ad2582e194ae908c71568c 100644
--- a/Source/core/dom/NamedNodesCollection.h
+++ b/Source/core/dom/NamedNodesCollection.h
@@ -41,7 +41,7 @@ namespace WebCore {
class NamedNodesCollection FINAL : public NodeList {
public:
- static PassRefPtr<NodeList> create(const Vector<RefPtr<Node> >& nodes)
+ static PassRefPtr<NodeList> create(const Vector<RefPtr<Element> >& nodes)
{
return adoptRef(new NamedNodesCollection(nodes));
}
@@ -51,10 +51,10 @@ public:
virtual Node* namedItem(const AtomicString&) const OVERRIDE;
private:
- explicit NamedNodesCollection(const Vector<RefPtr<Node> >& nodes)
+ explicit NamedNodesCollection(const Vector<RefPtr<Element> >& nodes)
: m_nodes(nodes) { }
- Vector<RefPtr<Node> > m_nodes;
+ Vector<RefPtr<Element> > m_nodes;
};
} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp ('k') | Source/core/html/HTMLAllCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698