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

Unified Diff: Source/bindings/v8/custom/V8DocumentCustom.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/V8DocumentCustom.cpp
diff --git a/Source/bindings/v8/custom/V8DocumentCustom.cpp b/Source/bindings/v8/custom/V8DocumentCustom.cpp
index 1f864b8428df19380b6cbfbb240f7460857cfe57..d3da93ea99e7b954ff6081ea083efde70dad5ac0 100644
--- a/Source/bindings/v8/custom/V8DocumentCustom.cpp
+++ b/Source/bindings/v8/custom/V8DocumentCustom.cpp
@@ -57,31 +57,31 @@
namespace WebCore {
-void V8Document::evaluateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8Document::evaluateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- RefPtr<Document> document = V8Document::toNative(args.Holder());
- ExceptionState es(args.GetIsolate());
- V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, expression, args[0]);
+ RefPtr<Document> document = V8Document::toNative(info.Holder());
+ ExceptionState es(info.GetIsolate());
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, expression, info[0]);
RefPtr<Node> contextNode;
- if (V8Node::HasInstance(args[1], args.GetIsolate(), worldType(args.GetIsolate())))
- contextNode = V8Node::toNative(v8::Handle<v8::Object>::Cast(args[1]));
+ if (V8Node::HasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())))
+ contextNode = V8Node::toNative(v8::Handle<v8::Object>::Cast(info[1]));
- RefPtr<XPathNSResolver> resolver = toXPathNSResolver(args[2], args.GetIsolate());
- if (!resolver && !args[2]->IsNull() && !args[2]->IsUndefined()) {
- setDOMException(TypeMismatchError, args.GetIsolate());
+ RefPtr<XPathNSResolver> resolver = toXPathNSResolver(info[2], info.GetIsolate());
+ if (!resolver && !info[2]->IsNull() && !info[2]->IsUndefined()) {
+ setDOMException(TypeMismatchError, info.GetIsolate());
return;
}
- int type = toInt32(args[3]);
+ int type = toInt32(info[3]);
RefPtr<XPathResult> inResult;
- if (V8XPathResult::HasInstance(args[4], args.GetIsolate(), worldType(args.GetIsolate())))
- inResult = V8XPathResult::toNative(v8::Handle<v8::Object>::Cast(args[4]));
+ if (V8XPathResult::HasInstance(info[4], info.GetIsolate(), worldType(info.GetIsolate())))
+ inResult = V8XPathResult::toNative(v8::Handle<v8::Object>::Cast(info[4]));
V8TRYCATCH_VOID(RefPtr<XPathResult>, result, DocumentXPathEvaluator::evaluate(document.get(), expression, contextNode.get(), resolver.get(), type, inResult.get(), es));
if (es.throwIfNeeded())
return;
- v8SetReturnValueFast(args, result.release(), document.get());
+ v8SetReturnValueFast(info, result.release(), document.get());
}
} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp ('k') | Source/bindings/v8/custom/V8FormDataCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698