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

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

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/html/DocumentNameCollection.h ('k') | Source/core/html/HTMLCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/DocumentNameCollection.cpp
diff --git a/Source/core/html/DocumentNameCollection.cpp b/Source/core/html/DocumentNameCollection.cpp
index e4606e018b3d5b3064e15830047b573dcd23f60f..aa24a27d7312fdbdff7a42f43326f3d1ff3c4f11 100644
--- a/Source/core/html/DocumentNameCollection.cpp
+++ b/Source/core/html/DocumentNameCollection.cpp
@@ -16,7 +16,7 @@ DocumentNameCollection::DocumentNameCollection(ContainerNode& document, const At
{
}
-bool DocumentNameCollection::elementMatches(const Element& element) const
+bool DocumentNameCollection::elementMatches(const HTMLElement& element) const
{
// Match images, forms, applets, embeds, objects and iframes by name,
// applets and object by id, and images by id but only if they have
« no previous file with comments | « Source/core/html/DocumentNameCollection.h ('k') | Source/core/html/HTMLCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698