Index: Source/core/html/HTMLOptionsCollection.cpp |
diff --git a/Source/core/html/HTMLOptionsCollection.cpp b/Source/core/html/HTMLOptionsCollection.cpp |
index 95b359943db341031c07819863162163e4e552c7..9f5119593b0c0c7dc5dbf60707c60a44ce3ab41f 100644 |
--- a/Source/core/html/HTMLOptionsCollection.cpp |
+++ b/Source/core/html/HTMLOptionsCollection.cpp |
@@ -118,7 +118,7 @@ void HTMLOptionsCollection::setLength(unsigned length, ExceptionState& exception |
toHTMLSelectElement(ownerNode()).setLength(length, exceptionState); |
} |
-void HTMLOptionsCollection::namedGetter(const AtomicString& name, bool& returnValue0Enabled, RefPtrWillBeRawPtr<NodeList>& returnValue0, bool& returnValue1Enabled, RefPtrWillBeRawPtr<Element>& returnValue1) |
+void HTMLOptionsCollection::namedGetter(const AtomicString& name, Nullable<RefPtrWillBeRawPtr<NodeList> >& returnValue0, Nullable<RefPtrWillBeRawPtr<Element> >& returnValue1) |
{ |
WillBeHeapVector<RefPtrWillBeMember<Element> > namedItems; |
this->namedItems(name, namedItems); |
@@ -127,14 +127,12 @@ void HTMLOptionsCollection::namedGetter(const AtomicString& name, bool& returnVa |
return; |
if (namedItems.size() == 1) { |
- returnValue1Enabled = true; |
- returnValue1 = namedItems.at(0); |
+ returnValue1.set(namedItems.at(0)); |
return; |
} |
// FIXME: The spec and Firefox do not return a NodeList. They always return the first matching Element. |
- returnValue0Enabled = true; |
- returnValue0 = StaticElementList::adopt(namedItems); |
+ returnValue0.set(StaticElementList::adopt(namedItems)); |
} |
bool HTMLOptionsCollection::anonymousIndexedSetter(unsigned index, PassRefPtrWillBeRawPtr<HTMLOptionElement> value, ExceptionState& exceptionState) |