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/V8FormDataCustom.cpp

Issue 15877002: move constructors to new style callbacks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 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/V8FormDataCustom.cpp
diff --git a/Source/bindings/v8/custom/V8FormDataCustom.cpp b/Source/bindings/v8/custom/V8FormDataCustom.cpp
index f078e7288e0245501f83cb69b9f8ba93d781140f..c8aea6bfccd4d29ccab2630ee7b415f7a30b4c8a 100644
--- a/Source/bindings/v8/custom/V8FormDataCustom.cpp
+++ b/Source/bindings/v8/custom/V8FormDataCustom.cpp
@@ -39,7 +39,7 @@
namespace WebCore {
-v8::Handle<v8::Value> V8FormData::constructorCustom(const v8::Arguments& args)
+void V8FormData::constructorCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
{
HTMLFormElement* form = 0;
if (args.Length() > 0 && V8HTMLFormElement::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())))
@@ -48,7 +48,7 @@ v8::Handle<v8::Value> V8FormData::constructorCustom(const v8::Arguments& args)
v8::Handle<v8::Object> wrapper = args.Holder();
V8DOMWrapper::associateObjectWithWrapper(domFormData.release(), &info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
- return wrapper;
+ args.GetReturnValue().Set(wrapper);
}
v8::Handle<v8::Value> V8FormData::appendMethodCustom(const v8::Arguments& args)
« no previous file with comments | « Source/bindings/v8/custom/V8DataViewCustom.cpp ('k') | Source/bindings/v8/custom/V8MessageChannelCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698