Index: Source/core/html/HTMLNameCollection.cpp |
diff --git a/Source/core/html/HTMLNameCollection.cpp b/Source/core/html/HTMLNameCollection.cpp |
index 0706e81cb23f32197478caca3cfe5b1fb0b5f20b..47e30ed892adb4f0f1308be47c59904e1f54093c 100644 |
--- a/Source/core/html/HTMLNameCollection.cpp |
+++ b/Source/core/html/HTMLNameCollection.cpp |
@@ -56,9 +56,9 @@ Element* HTMLNameCollection::virtualItemAfter(unsigned& offsetInArray, Element* |
if (!previous) |
current = ElementTraversal::firstWithin(ownerNode()); |
else |
- current = ElementTraversal::next(previous, ownerNode()); |
+ current = ElementTraversal::next(*previous, ownerNode()); |
- for (; current; current = ElementTraversal::next(current, ownerNode())) { |
+ for (; current; current = ElementTraversal::next(*current, ownerNode())) { |
switch (type()) { |
case WindowNamedItems: |
// find only images, forms, applets, embeds and objects by name, |