| Index: Source/bindings/tests/results/core/V8SVGTestInterface.cpp
|
| diff --git a/Source/bindings/tests/results/core/V8SVGTestInterface.cpp b/Source/bindings/tests/results/core/V8SVGTestInterface.cpp
|
| index ecb9c67195a619aad408b115e5b8a40c9e325ac6..be78094e70f41cbbba37d2d9696ad80bee0960ec 100644
|
| --- a/Source/bindings/tests/results/core/V8SVGTestInterface.cpp
|
| +++ b/Source/bindings/tests/results/core/V8SVGTestInterface.cpp
|
| @@ -31,21 +31,21 @@ const WrapperTypeInfo& SVGTestInterface::s_wrapperTypeInfo = V8SVGTestInterface:
|
|
|
| namespace SVGTestInterfaceV8Internal {
|
|
|
| -static void typeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| +static void typeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| v8::Local<v8::Object> holder = info.Holder();
|
| SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder);
|
| v8SetReturnValueString(info, impl->fastGetAttribute(SVGNames::typeAttr), info.GetIsolate());
|
| }
|
|
|
| -static void typeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| +static void typeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
|
| SVGTestInterfaceV8Internal::typeAttributeGetter(info);
|
| TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| }
|
|
|
| -static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
|
| +static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| v8::Local<v8::Object> holder = info.Holder();
|
| SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder);
|
| @@ -54,8 +54,9 @@ static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
|
| impl->setAttribute(SVGNames::typeAttr, cppValue);
|
| }
|
|
|
| -static void typeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
|
| +static void typeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + v8::Local<v8::Value> v8Value = info[0];
|
| TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
|
| CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
|
| SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info);
|
| @@ -64,8 +65,8 @@ static void typeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
|
|
|
| } // namespace SVGTestInterfaceV8Internal
|
|
|
| -static const V8DOMConfiguration::AttributeConfiguration V8SVGTestInterfaceAttributes[] = {
|
| - {"type", SVGTestInterfaceV8Internal::typeAttributeGetterCallback, SVGTestInterfaceV8Internal::typeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
|
| +static const V8DOMConfiguration::AccessorConfiguration V8SVGTestInterfaceAccessors[] = {
|
| + {"type", SVGTestInterfaceV8Internal::typeAttributeGetterCallback, SVGTestInterfaceV8Internal::typeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
|
| };
|
|
|
| static void installV8SVGTestInterfaceTemplate(v8::Local<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate)
|
| @@ -74,8 +75,8 @@ static void installV8SVGTestInterfaceTemplate(v8::Local<v8::FunctionTemplate> fu
|
|
|
| v8::Local<v8::Signature> defaultSignature;
|
| defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "SVGTestInterface", v8::Local<v8::FunctionTemplate>(), V8SVGTestInterface::internalFieldCount,
|
| - V8SVGTestInterfaceAttributes, WTF_ARRAY_LENGTH(V8SVGTestInterfaceAttributes),
|
| 0, 0,
|
| + V8SVGTestInterfaceAccessors, WTF_ARRAY_LENGTH(V8SVGTestInterfaceAccessors),
|
| 0, 0);
|
| v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceTemplate();
|
| ALLOW_UNUSED_LOCAL(instanceTemplate);
|
|
|