Index: Source/web/WebSearchableFormData.cpp |
diff --git a/Source/web/WebSearchableFormData.cpp b/Source/web/WebSearchableFormData.cpp |
index b92d461a7f27b493b31666676356a65bd9c363df..370064b8c72223b531f224eb3906ba5655119484 100644 |
--- a/Source/web/WebSearchableFormData.cpp |
+++ b/Source/web/WebSearchableFormData.cpp |
@@ -102,7 +102,7 @@ bool IsSelectInDefaultState(HTMLSelectElement* select) |
const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& listItems = select->listItems(); |
if (select->multiple() || select->size() > 1) { |
for (WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >::const_iterator i(listItems.begin()); i != listItems.end(); ++i) { |
- if (!(*i)->hasLocalName(HTMLNames::optionTag)) |
+ if (!isHTMLOptionElement(*i)) |
continue; |
HTMLOptionElement* optionElement = toHTMLOptionElement(*i); |
if (optionElement->selected() != optionElement->hasAttribute(selectedAttr)) |
@@ -115,7 +115,7 @@ bool IsSelectInDefaultState(HTMLSelectElement* select) |
// least one item is selected, determine which one. |
HTMLOptionElement* initialSelected = 0; |
for (WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >::const_iterator i(listItems.begin()); i != listItems.end(); ++i) { |
- if (!(*i)->hasLocalName(HTMLNames::optionTag)) |
+ if (!isHTMLOptionElement(*i)) |
continue; |
HTMLOptionElement* optionElement = toHTMLOptionElement(*i); |
if (optionElement->hasAttribute(selectedAttr)) { |