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

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

Issue 331863003: Have NodeList::item() overrides return an Element* when appropriate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/LiveNodeList.h ('k') | Source/core/dom/NamedNodesCollection.cpp » ('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 025fb07b812042e5865ae80169d7f6f4adbf9090..d30a2ad05b6ff6b09b2cbdb11e2536d73e64509f 100644
--- a/Source/core/dom/NamedNodesCollection.h
+++ b/Source/core/dom/NamedNodesCollection.h
@@ -31,7 +31,7 @@
#ifndef NamedNodesCollection_h
#define NamedNodesCollection_h
-#include "core/dom/Node.h"
+#include "core/dom/Element.h"
#include "core/dom/NodeList.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -47,7 +47,7 @@ public:
}
virtual unsigned length() const OVERRIDE { return m_nodes.size(); }
- virtual Node* item(unsigned) const OVERRIDE;
+ virtual Element* item(unsigned) const OVERRIDE;
virtual void trace(Visitor*) OVERRIDE;
« no previous file with comments | « Source/core/dom/LiveNodeList.h ('k') | Source/core/dom/NamedNodesCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698