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 7a5b3d6c191f14972b46c675bc099029915f47b3..697085cfe0114d39b4b60844ce10a376555d9317 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 @@ namespace blink { |
#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::RefCountedObject }; |
+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 }; |
#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
#pragma clang diagnostic pop |
#endif |
@@ -53,11 +53,11 @@ TestArrayBuffer* V8ArrayBuffer::toImpl(v8::Local<v8::Object> object) |
// copying. |
v8::ArrayBuffer::Contents v8Contents = v8buffer->Externalize(); |
WTF::ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength(), WTF::ArrayBufferContents::NotShared); |
- RefPtr<TestArrayBuffer> buffer = TestArrayBuffer::create(contents); |
+ 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.get(); |
+ return buffer; |
} |
TestArrayBuffer* V8ArrayBuffer::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) |
@@ -67,12 +67,10 @@ TestArrayBuffer* V8ArrayBuffer::toImplWithTypeCheck(v8::Isolate* isolate, v8::Lo |
void V8ArrayBuffer::refObject(ScriptWrappable* scriptWrappable) |
{ |
- scriptWrappable->toImpl<TestArrayBuffer>()->ref(); |
} |
void V8ArrayBuffer::derefObject(ScriptWrappable* scriptWrappable) |
{ |
- scriptWrappable->toImpl<TestArrayBuffer>()->deref(); |
} |
} // namespace blink |