summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLMapElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLMapElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLMapElement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/html/HTMLMapElement.cpp b/Source/WebCore/html/HTMLMapElement.cpp
index 8f6d6f64c..293eee354 100644
--- a/Source/WebCore/html/HTMLMapElement.cpp
+++ b/Source/WebCore/html/HTMLMapElement.cpp
@@ -82,8 +82,8 @@ bool HTMLMapElement::mapMouseEvent(LayoutPoint location, const LayoutSize& size,
HTMLImageElement* HTMLMapElement::imageElement()
{
- HTMLCollection* coll = document()->images();
- for (Node* curr = coll->firstItem(); curr; curr = coll->nextItem()) {
+ HTMLCollection* images = document()->images();
+ for (unsigned i = 0; Node* curr = images->item(i); i++) {
if (!curr->hasTagName(imgTag))
continue;