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

Unified Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 47073007: Bindings: Remove special cases for DOMStringList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/bindings/tests/results/V8TestObject.cpp
diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp
index 492528e87c08ed158c30b66065e17f404726a9d1..fbc303e278de39763b4293ff5e42cece7b8de779 100644
--- a/Source/bindings/tests/results/V8TestObject.cpp
+++ b/Source/bindings/tests/results/V8TestObject.cpp
@@ -3811,7 +3811,7 @@ static void overloadedMethod6Method(const v8::FunctionCallbackInfo<v8::Value>& a
return;
}
TestObj* imp = V8TestObject::toNative(args.Holder());
- V8TRYCATCH_VOID(RefPtr<DOMStringList>, listArg, toDOMStringList(args[0], args.GetIsolate()));
+ V8TRYCATCH_VOID(DOMStringList*, listArg, V8DOMStringList::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8DOMStringList::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0);
imp->overloadedMethod(listArg);
}
@@ -4136,7 +4136,7 @@ static void domStringListFunctionMethod(const v8::FunctionCallbackInfo<v8::Value
}
TestObj* imp = V8TestObject::toNative(args.Holder());
ExceptionState es(args.GetIsolate());
- V8TRYCATCH_VOID(RefPtr<DOMStringList>, values, toDOMStringList(args[0], args.GetIsolate()));
+ V8TRYCATCH_VOID(DOMStringList*, values, V8DOMStringList::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8DOMStringList::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0);
RefPtr<DOMStringList> result = imp->domStringListFunction(values, es);
if (es.throwIfNeeded())
return;

Powered by Google App Engine
This is Rietveld 408576698