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

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

Issue 54283002: Rename |args| to |info| in V8 bindings (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
« no previous file with comments | « Source/bindings/v8/custom/V8DocumentCustom.cpp ('k') | Source/bindings/v8/custom/V8GeolocationCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/custom/V8FormDataCustom.cpp
diff --git a/Source/bindings/v8/custom/V8FormDataCustom.cpp b/Source/bindings/v8/custom/V8FormDataCustom.cpp
index b7565583be674b5fd3124e3c5aa04a456d900d09..2e15f1e9d4bd5e1b38e3bfafe875e3c54a14802a 100644
--- a/Source/bindings/v8/custom/V8FormDataCustom.cpp
+++ b/Source/bindings/v8/custom/V8FormDataCustom.cpp
@@ -39,38 +39,38 @@
namespace WebCore {
-void V8FormData::constructorCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8FormData::constructorCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
HTMLFormElement* form = 0;
- if (args.Length() > 0 && V8HTMLFormElement::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())))
- form = V8HTMLFormElement::toNative(args[0]->ToObject());
+ if (info.Length() > 0 && V8HTMLFormElement::HasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())))
+ form = V8HTMLFormElement::toNative(info[0]->ToObject());
RefPtr<DOMFormData> domFormData = DOMFormData::create(form);
- v8::Handle<v8::Object> wrapper = args.Holder();
- V8DOMWrapper::associateObjectWithWrapper<V8FormData>(domFormData.release(), &wrapperTypeInfo, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
- args.GetReturnValue().Set(wrapper);
+ v8::Handle<v8::Object> wrapper = info.Holder();
+ V8DOMWrapper::associateObjectWithWrapper<V8FormData>(domFormData.release(), &wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent);
+ info.GetReturnValue().Set(wrapper);
}
-void V8FormData::appendMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8FormData::appendMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (args.Length() < 2) {
- throwError(v8SyntaxError, "Not enough arguments", args.GetIsolate());
+ if (info.Length() < 2) {
+ throwError(v8SyntaxError, "Not enough arguments", info.GetIsolate());
return;
}
- DOMFormData* domFormData = V8FormData::toNative(args.Holder());
+ DOMFormData* domFormData = V8FormData::toNative(info.Holder());
- String name = toWebCoreStringWithNullCheck(args[0]);
+ String name = toWebCoreStringWithNullCheck(info[0]);
- v8::Handle<v8::Value> arg = args[1];
- if (V8Blob::HasInstance(arg, args.GetIsolate(), worldType(args.GetIsolate()))) {
+ v8::Handle<v8::Value> arg = info[1];
+ if (V8Blob::HasInstance(arg, info.GetIsolate(), worldType(info.GetIsolate()))) {
v8::Handle<v8::Object> object = v8::Handle<v8::Object>::Cast(arg);
Blob* blob = V8Blob::toNative(object);
ASSERT(blob);
String filename;
- if (args.Length() >= 3 && !args[2]->IsUndefined())
- filename = toWebCoreStringWithNullCheck(args[2]);
+ if (info.Length() >= 3 && !info[2]->IsUndefined())
+ filename = toWebCoreStringWithNullCheck(info[2]);
domFormData->append(name, blob, filename);
} else
« no previous file with comments | « Source/bindings/v8/custom/V8DocumentCustom.cpp ('k') | Source/bindings/v8/custom/V8GeolocationCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698