Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1077)

Unified Diff: Source/core/html/HTMLOptionsCollection.cpp

Issue 15724005: [Binding] Support primitive type for union member (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: do not inherit getter. rename DoNotCheckJSProperty to OverrideBuiltins Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLOptionsCollection.cpp
diff --git a/Source/core/html/HTMLOptionsCollection.cpp b/Source/core/html/HTMLOptionsCollection.cpp
index a4e87f820a3ce1fc9a44b1aac1d8670947a549fe..276590550ccdf0fbf21706359514b21143a378cc 100644
--- a/Source/core/html/HTMLOptionsCollection.cpp
+++ b/Source/core/html/HTMLOptionsCollection.cpp
@@ -90,7 +90,7 @@ void HTMLOptionsCollection::setLength(unsigned length, ExceptionCode& ec)
toHTMLSelectElement(ownerNode())->setLength(length, ec);
}
-void HTMLOptionsCollection::anonymousNamedGetter(const AtomicString& name, RefPtr<NodeList>& returnValue1, RefPtr<Node>& returnValue2)
+void HTMLOptionsCollection::anonymousNamedGetter(const AtomicString& name, bool& returnValue0Enabled, RefPtr<NodeList>& returnValue0, bool& returnValue1Enabled, RefPtr<Node>& returnValue1)
{
Vector<RefPtr<Node> > namedItems;
this->namedItems(name, namedItems);
@@ -99,11 +99,13 @@ void HTMLOptionsCollection::anonymousNamedGetter(const AtomicString& name, RefPt
return;
if (namedItems.size() == 1) {
- returnValue2 = namedItems.at(0);
+ returnValue1Enabled = true;
+ returnValue1 = namedItems.at(0);
return;
}
- returnValue1 = NamedNodesCollection::create(namedItems);
+ returnValue0Enabled = true;
+ returnValue0 = NamedNodesCollection::create(namedItems);
}
} //namespace

Powered by Google App Engine
This is Rietveld 408576698