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

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

Issue 680193003: IDL: Generate union type containers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/HTMLFormControlsCollection.cpp
diff --git a/Source/core/html/HTMLFormControlsCollection.cpp b/Source/core/html/HTMLFormControlsCollection.cpp
index c386d4aa98f7a840f9c823297cfe5452fa70c5c8..f9e12c9afa9e42caf5cd961aeaef164c5a07a3ce 100644
--- a/Source/core/html/HTMLFormControlsCollection.cpp
+++ b/Source/core/html/HTMLFormControlsCollection.cpp
@@ -24,6 +24,7 @@
#include "config.h"
#include "core/html/HTMLFormControlsCollection.h"
+#include "bindings/core/v8/UnionTypesCore.h"
#include "core/HTMLNames.h"
#include "core/frame/UseCounter.h"
#include "core/html/HTMLFieldSetElement.h"
@@ -192,7 +193,7 @@ void HTMLFormControlsCollection::updateIdNameCache() const
setNamedItemCache(cache.release());
}
-void HTMLFormControlsCollection::namedGetter(const AtomicString& name, RefPtrWillBeRawPtr<RadioNodeList>& radioNodeList, RefPtrWillBeRawPtr<Element>& element)
+void HTMLFormControlsCollection::namedGetter(const AtomicString& name, RadioNodeListOrElement& returnValue)
{
WillBeHeapVector<RefPtrWillBeMember<Element> > namedItems;
this->namedItems(name, namedItems);
@@ -201,11 +202,11 @@ void HTMLFormControlsCollection::namedGetter(const AtomicString& name, RefPtrWil
return;
if (namedItems.size() == 1) {
- element = namedItems.at(0);
+ returnValue.setElement(namedItems.at(0));
return;
}
- radioNodeList = ownerNode().radioNodeList(name);
+ returnValue.setRadioNodeList(ownerNode().radioNodeList(name));
}
void HTMLFormControlsCollection::supportedPropertyNames(Vector<String>& names)

Powered by Google App Engine
This is Rietveld 408576698