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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp

Issue 2460563002: [Bindings] Reformat methods.cpp.tmpl (2/4) (Closed)
Patch Set: Rebase Created 4 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: third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
index 9f89f41146888577440146520087a9924defb5a1..4df6b5b58abc2f3ccc7e5996ff78a28779bbe079 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
@@ -55,28 +55,26 @@ static_assert(
namespace TestSpecialOperationsV8Internal {
-static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder());
+static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder());
- if (UNLIKELY(info.Length() < 1)) {
- V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("namedItem", "TestSpecialOperations", ExceptionMessages::notEnoughArguments(1, info.Length())));
- return;
- }
+ if (UNLIKELY(info.Length() < 1)) {
+ V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("namedItem", "TestSpecialOperations", ExceptionMessages::notEnoughArguments(1, info.Length())));
+ return;
+ }
- V8StringResource<> name;
- name = info[0];
- if (!name.prepare())
- return;
+ V8StringResource<> name;
+ name = info[0];
+ if (!name.prepare())
+ return;
- NodeOrNodeList result;
- impl->getItem(name, result);
- v8SetReturnValue(info, result);
+ NodeOrNodeList result;
+ impl->getItem(name, result);
+ v8SetReturnValue(info, result);
}
-void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestSpecialOperationsV8Internal::namedItemMethod(info);
+void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestSpecialOperationsV8Internal::namedItemMethod(info);
}
static void namedPropertyGetter(const AtomicString& name, const v8::PropertyCallbackInfo<v8::Value>& info) {

Powered by Google App Engine
This is Rietveld 408576698