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

Unified Diff: Source/bindings/v8/custom/V8HTMLAllCollectionCustom.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
Index: Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp
diff --git a/Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp b/Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp
index 97fb74bf095ee2f7e531d611da664981b7490b56..8e9f056272a2cee7c8f1e16a0740d11cdcaf3d14 100644
--- a/Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp
+++ b/Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp
@@ -75,51 +75,51 @@ static v8::Handle<v8::Value> getItem(HTMLAllCollection* collection, v8::Handle<v
return toV8(result.release(), callbackInfo.Holder(), callbackInfo.GetIsolate());
}
-void V8HTMLAllCollection::itemMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8HTMLAllCollection::itemMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- HTMLAllCollection* imp = V8HTMLAllCollection::toNative(args.Holder());
- v8SetReturnValue(args, getItem(imp, args[0], args));
+ HTMLAllCollection* imp = V8HTMLAllCollection::toNative(info.Holder());
+ v8SetReturnValue(info, getItem(imp, info[0], info));
}
-void V8HTMLAllCollection::namedItemMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8HTMLAllCollection::namedItemMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, args[0]);
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, info[0]);
- HTMLAllCollection* imp = V8HTMLAllCollection::toNative(args.Holder());
- v8::Handle<v8::Value> result = getNamedItems(imp, name, args);
+ HTMLAllCollection* imp = V8HTMLAllCollection::toNative(info.Holder());
+ v8::Handle<v8::Value> result = getNamedItems(imp, name, info);
if (result.IsEmpty()) {
- v8SetReturnValueNull(args);
+ v8SetReturnValueNull(info);
return;
}
- v8SetReturnValue(args, result);
+ v8SetReturnValue(info, result);
}
-void V8HTMLAllCollection::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8HTMLAllCollection::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (args.Length() < 1)
+ if (info.Length() < 1)
return;
- HTMLAllCollection* imp = V8HTMLAllCollection::toNative(args.Holder());
+ HTMLAllCollection* imp = V8HTMLAllCollection::toNative(info.Holder());
Node* ownerNode = imp->ownerNode();
ASSERT(ownerNode);
UseCounter::count(ownerNode->document(), UseCounter::DocumentAllLegacyCall);
- if (args.Length() == 1) {
- v8SetReturnValue(args, getItem(imp, args[0], args));
+ if (info.Length() == 1) {
+ v8SetReturnValue(info, getItem(imp, info[0], info));
return;
}
// If there is a second argument it is the index of the item we want.
- V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, args[0]);
- v8::Local<v8::Uint32> index = args[1]->ToArrayIndex();
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, info[0]);
+ v8::Local<v8::Uint32> index = info[1]->ToArrayIndex();
if (index.IsEmpty())
return;
if (Node* node = imp->namedItemWithIndex(name, index->Uint32Value())) {
- v8SetReturnValueFast(args, node, imp);
+ v8SetReturnValueFast(info, node, imp);
return;
}
}
« no previous file with comments | « Source/bindings/v8/custom/V8GeolocationCustom.cpp ('k') | Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698