| Index: third_party/WebKit/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8ArrayBuffer.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
|
| index 697085cfe0114d39b4b60844ce10a376555d9317..7a5b3d6c191f14972b46c675bc099029915f47b3 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
|
| @@ -23,7 +23,7 @@
|
| #pragma clang diagnostic push
|
| #pragma clang diagnostic ignored "-Wglobal-constructors"
|
| #endif
|
| -const WrapperTypeInfo V8ArrayBuffer::wrapperTypeInfo = { gin::kEmbedderBlink, 0, V8ArrayBuffer::refObject, V8ArrayBuffer::derefObject, V8ArrayBuffer::trace, 0, 0, V8ArrayBuffer::preparePrototypeAndInterfaceObject, V8ArrayBuffer::installConditionallyEnabledProperties, "ArrayBuffer", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::GarbageCollectedObject };
|
| +const WrapperTypeInfo V8ArrayBuffer::wrapperTypeInfo = { gin::kEmbedderBlink, 0, V8ArrayBuffer::refObject, V8ArrayBuffer::derefObject, V8ArrayBuffer::trace, 0, 0, V8ArrayBuffer::preparePrototypeAndInterfaceObject, V8ArrayBuffer::installConditionallyEnabledProperties, "ArrayBuffer", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject };
|
| #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| #pragma clang diagnostic pop
|
| #endif
|
| @@ -53,11 +53,11 @@
|
| // copying.
|
| v8::ArrayBuffer::Contents v8Contents = v8buffer->Externalize();
|
| WTF::ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength(), WTF::ArrayBufferContents::NotShared);
|
| - TestArrayBuffer* buffer = TestArrayBuffer::create(contents);
|
| + RefPtr<TestArrayBuffer> buffer = TestArrayBuffer::create(contents);
|
| v8::Local<v8::Object> associatedWrapper = buffer->associateWithWrapper(v8::Isolate::GetCurrent(), buffer->wrapperTypeInfo(), object);
|
| ASSERT_UNUSED(associatedWrapper, associatedWrapper == object);
|
|
|
| - return buffer;
|
| + return buffer.get();
|
| }
|
|
|
| TestArrayBuffer* V8ArrayBuffer::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value)
|
| @@ -67,10 +67,12 @@
|
|
|
| void V8ArrayBuffer::refObject(ScriptWrappable* scriptWrappable)
|
| {
|
| + scriptWrappable->toImpl<TestArrayBuffer>()->ref();
|
| }
|
|
|
| void V8ArrayBuffer::derefObject(ScriptWrappable* scriptWrappable)
|
| {
|
| + scriptWrappable->toImpl<TestArrayBuffer>()->deref();
|
| }
|
|
|
| } // namespace blink
|
|
|