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/tests/results/V8TestTypedefs.cpp

Issue 48003002: IDL compiler: remove blank line for void methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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/tests/results/V8TestObjectPython.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/V8TestTypedefs.cpp
diff --git a/Source/bindings/tests/results/V8TestTypedefs.cpp b/Source/bindings/tests/results/V8TestTypedefs.cpp
index 2023c9a2cf0c168014b94a5bc9c60496a28364fd..25a2f709dcfbbf872acf688ede8d4a4ffc532d87 100644
--- a/Source/bindings/tests/results/V8TestTypedefs.cpp
+++ b/Source/bindings/tests/results/V8TestTypedefs.cpp
@@ -267,12 +267,10 @@ static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder());
if (UNLIKELY(args.Length() <= 0)) {
imp->func();
-
return;
}
V8TRYCATCH_VOID(Vector<int>, x, toNativeArray<int>(args[0], 1, args.GetIsolate()));
imp->func(x);
-
return;
}
@@ -295,18 +293,15 @@ static void setShadowMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
V8TRYCATCH_VOID(float, blur, static_cast<float>(args[2]->NumberValue()));
if (UNLIKELY(args.Length() <= 3)) {
imp->setShadow(width, height, blur);
-
return;
}
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, color, args[3]);
if (UNLIKELY(args.Length() <= 4)) {
imp->setShadow(width, height, blur, color);
-
return;
}
V8TRYCATCH_VOID(float, alpha, static_cast<float>(args[4]->NumberValue()));
imp->setShadow(width, height, blur, color, alpha);
-
return;
}
@@ -346,7 +341,6 @@ static void nullableArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
bool arrayArgIsNull = args[0]->IsNull();
V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0], 1, args.GetIsolate()));
imp->nullableArrayArg(arrayArgIsNull ? 0 : &arrayArg);
-
return;
}
@@ -370,7 +364,6 @@ static void funcWithClampMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
arg1 = clampTo<unsigned long long>(arg1NativeValue);
if (UNLIKELY(args.Length() <= 1)) {
imp->funcWithClamp(arg1);
-
return;
}
unsigned long long arg2 = 0;
@@ -378,7 +371,6 @@ static void funcWithClampMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
if (!std::isnan(arg2NativeValue))
arg2 = clampTo<unsigned long long>(arg2NativeValue);
imp->funcWithClamp(arg1, arg2);
-
return;
}
@@ -456,7 +448,6 @@ static void methodWithExceptionMethod(const v8::FunctionCallbackInfo<v8::Value>&
imp->methodWithException(es);
if (es.throwIfNeeded())
return;
-
return;
}
« no previous file with comments | « Source/bindings/tests/results/V8TestObjectPython.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698