Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 08de712583726bdb85064b38b5c91980faa4f546..0f693a918189e7e4003d63a99d540db22d4d0348 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -736,7 +736,7 @@ void HTMLSelectElement::recalcListItems(bool updateSelectedStates) const |
HTMLOptionElement* firstOption = 0; |
for (Element* currentElement = ElementTraversal::firstWithin(this); currentElement; ) { |
if (!currentElement->isHTMLElement()) { |
- currentElement = ElementTraversal::nextSkippingChildren(currentElement, this); |
+ currentElement = ElementTraversal::nextSkippingChildren(*currentElement, this); |
continue; |
} |
HTMLElement* current = toHTMLElement(currentElement); |
@@ -779,7 +779,7 @@ void HTMLSelectElement::recalcListItems(bool updateSelectedStates) const |
// with the case where odd tags like a <div> have been added but we |
// handle this because such tags have already been removed from the |
// <select>'s subtree at this point. |
- currentElement = ElementTraversal::nextSkippingChildren(currentElement, this); |
+ currentElement = ElementTraversal::nextSkippingChildren(*currentElement, this); |
} |
if (!foundSelected && m_size <= 1 && firstOption && !firstOption->selected()) |