| 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;
|
| }
|
| }
|
|
|