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

Unified Diff: Source/bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp

Issue 15076011: Support union return type for anonymous named/indexed getter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: 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/bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp
diff --git a/Source/bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp b/Source/bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp
index 89733713d54e10e94c25dfd7d3564ef249c98786..2d6f090f5adc0fa56a2404f951ba7c5f53b4bf6a 100644
--- a/Source/bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp
+++ b/Source/bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp
@@ -54,17 +54,6 @@ static v8::Handle<v8::Value> getNamedItems(HTMLFormControlsCollection* collectio
return toV8Fast(collection->ownerNode()->radioNodeList(name).get(), holder, collection);
}
-v8::Handle<v8::Value> V8HTMLFormControlsCollection::namedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
- return v8Undefined();
- if (info.Holder()->HasRealNamedCallbackProperty(name))
- return v8Undefined();
-
- HTMLFormControlsCollection* imp = V8HTMLFormControlsCollection::toNative(info.Holder());
- return getNamedItems(imp, toWebCoreAtomicString(name), info);
-}
-
v8::Handle<v8::Value> V8HTMLFormControlsCollection::namedItemMethodCustom(const v8::Arguments& args)
{
HTMLFormControlsCollection* imp = V8HTMLFormControlsCollection::toNative(args.Holder());

Powered by Google App Engine
This is Rietveld 408576698