| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp
|
| index 7ffab6d221abf80ecc738dc8cd26d48a046493c1..84ba788f80de4d4a2ddd7f10254f9d0e69663ae3 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp
|
| @@ -49,146 +49,130 @@ static_assert(
|
|
|
| namespace TestNodeV8Internal {
|
|
|
| -static void hrefAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Object> holder = info.Holder();
|
| +static void hrefAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Object> holder = info.Holder();
|
|
|
| - TestNode* impl = V8TestNode::toImpl(holder);
|
| + TestNode* impl = V8TestNode::toImpl(holder);
|
|
|
| - v8SetReturnValueString(info, impl->href(), info.GetIsolate());
|
| + v8SetReturnValueString(info, impl->href(), info.GetIsolate());
|
| }
|
|
|
| -void hrefAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestNodeV8Internal::hrefAttributeGetter(info);
|
| +void hrefAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestNodeV8Internal::hrefAttributeGetter(info);
|
| }
|
|
|
| -static void hrefAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Object> holder = info.Holder();
|
| - TestNode* impl = V8TestNode::toImpl(holder);
|
| +static void hrefAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestNode* impl = V8TestNode::toImpl(holder);
|
|
|
| - // Prepare the value to be set.
|
| - V8StringResource<> cppValue = v8Value;
|
| - if (!cppValue.prepare())
|
| - return;
|
| + // Prepare the value to be set.
|
| + V8StringResource<> cppValue = v8Value;
|
| + if (!cppValue.prepare())
|
| + return;
|
|
|
| - impl->setHref(cppValue);
|
| + impl->setHref(cppValue);
|
| }
|
|
|
| -void hrefAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Value> v8Value = info[0];
|
| +void hrefAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Value> v8Value = info[0];
|
|
|
| - TestNodeV8Internal::hrefAttributeSetter(v8Value, info);
|
| + TestNodeV8Internal::hrefAttributeSetter(v8Value, info);
|
| }
|
|
|
| -static void hrefThrowsAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Object> holder = info.Holder();
|
| +static void hrefThrowsAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Object> holder = info.Holder();
|
|
|
| - TestNode* impl = V8TestNode::toImpl(holder);
|
| + TestNode* impl = V8TestNode::toImpl(holder);
|
|
|
| - v8SetReturnValueString(info, impl->hrefThrows(), info.GetIsolate());
|
| + v8SetReturnValueString(info, impl->hrefThrows(), info.GetIsolate());
|
| }
|
|
|
| -void hrefThrowsAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestNodeV8Internal::hrefThrowsAttributeGetter(info);
|
| +void hrefThrowsAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestNodeV8Internal::hrefThrowsAttributeGetter(info);
|
| }
|
|
|
| -static void hrefThrowsAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Object> holder = info.Holder();
|
| - TestNode* impl = V8TestNode::toImpl(holder);
|
| +static void hrefThrowsAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestNode* impl = V8TestNode::toImpl(holder);
|
|
|
| - ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestNode", "hrefThrows");
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestNode", "hrefThrows");
|
|
|
| - // Prepare the value to be set.
|
| - V8StringResource<> cppValue = v8Value;
|
| - if (!cppValue.prepare())
|
| - return;
|
| + // Prepare the value to be set.
|
| + V8StringResource<> cppValue = v8Value;
|
| + if (!cppValue.prepare())
|
| + return;
|
|
|
| - impl->setHrefThrows(cppValue, exceptionState);
|
| + impl->setHrefThrows(cppValue, exceptionState);
|
| }
|
|
|
| -void hrefThrowsAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Value> v8Value = info[0];
|
| +void hrefThrowsAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Value> v8Value = info[0];
|
|
|
| - TestNodeV8Internal::hrefThrowsAttributeSetter(v8Value, info);
|
| + TestNodeV8Internal::hrefThrowsAttributeSetter(v8Value, info);
|
| }
|
|
|
| -static void hrefCallWithAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Object> holder = info.Holder();
|
| +static void hrefCallWithAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Object> holder = info.Holder();
|
|
|
| - TestNode* impl = V8TestNode::toImpl(holder);
|
| + TestNode* impl = V8TestNode::toImpl(holder);
|
|
|
| - v8SetReturnValueString(info, impl->hrefCallWith(), info.GetIsolate());
|
| + v8SetReturnValueString(info, impl->hrefCallWith(), info.GetIsolate());
|
| }
|
|
|
| -void hrefCallWithAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestNodeV8Internal::hrefCallWithAttributeGetter(info);
|
| +void hrefCallWithAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestNodeV8Internal::hrefCallWithAttributeGetter(info);
|
| }
|
|
|
| -static void hrefCallWithAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Object> holder = info.Holder();
|
| - TestNode* impl = V8TestNode::toImpl(holder);
|
| +static void hrefCallWithAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestNode* impl = V8TestNode::toImpl(holder);
|
|
|
| - // Prepare the value to be set.
|
| - V8StringResource<> cppValue = v8Value;
|
| - if (!cppValue.prepare())
|
| - return;
|
| + // Prepare the value to be set.
|
| + V8StringResource<> cppValue = v8Value;
|
| + if (!cppValue.prepare())
|
| + return;
|
|
|
| - ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| + ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
|
|
| - impl->setHrefCallWith(executionContext, currentDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
|
| + impl->setHrefCallWith(executionContext, currentDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
|
| }
|
|
|
| -void hrefCallWithAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Value> v8Value = info[0];
|
| +void hrefCallWithAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Value> v8Value = info[0];
|
|
|
| - TestNodeV8Internal::hrefCallWithAttributeSetter(v8Value, info);
|
| + TestNodeV8Internal::hrefCallWithAttributeSetter(v8Value, info);
|
| }
|
|
|
| -static void hrefByteStringAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Object> holder = info.Holder();
|
| +static void hrefByteStringAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Object> holder = info.Holder();
|
|
|
| - TestNode* impl = V8TestNode::toImpl(holder);
|
| + TestNode* impl = V8TestNode::toImpl(holder);
|
|
|
| - v8SetReturnValueString(info, impl->hrefByteString(), info.GetIsolate());
|
| + v8SetReturnValueString(info, impl->hrefByteString(), info.GetIsolate());
|
| }
|
|
|
| -void hrefByteStringAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestNodeV8Internal::hrefByteStringAttributeGetter(info);
|
| +void hrefByteStringAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestNodeV8Internal::hrefByteStringAttributeGetter(info);
|
| }
|
|
|
| -static void hrefByteStringAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Object> holder = info.Holder();
|
| - TestNode* impl = V8TestNode::toImpl(holder);
|
| +static void hrefByteStringAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestNode* impl = V8TestNode::toImpl(holder);
|
|
|
| - ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestNode", "hrefByteString");
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestNode", "hrefByteString");
|
|
|
| - // Prepare the value to be set.
|
| - V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, exceptionState);
|
| - if (exceptionState.hadException())
|
| - return;
|
| + // Prepare the value to be set.
|
| + V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, exceptionState);
|
| + if (exceptionState.hadException())
|
| + return;
|
|
|
| - impl->setHrefByteString(cppValue);
|
| + impl->setHrefByteString(cppValue);
|
| }
|
|
|
| -void hrefByteStringAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - v8::Local<v8::Value> v8Value = info[0];
|
| +void hrefByteStringAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + v8::Local<v8::Value> v8Value = info[0];
|
|
|
| - TestNodeV8Internal::hrefByteStringAttributeSetter(v8Value, info);
|
| + TestNodeV8Internal::hrefByteStringAttributeSetter(v8Value, info);
|
| }
|
|
|
| static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
|
|