#include "public/web/WebInputElement.h"
#include "wtf/text/TextEncoding.h"
-using namespace WebCore;
+using namespace blink;
using namespace HTMLNames;
namespace {
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))
// 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)) {