| Index: third_party/WebKit/Source/bindings/tests/results/core/V8DataView.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8DataView.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8DataView.cpp
|
| index 6b9341630c374e1fd63656306a63f63152aa1fee..4dad8a5353dee655b1b89fb2dc67ff9af9d12f61 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8DataView.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8DataView.cpp
|
| @@ -23,7 +23,7 @@
|
| #pragma clang diagnostic push
|
| #pragma clang diagnostic ignored "-Wglobal-constructors"
|
| #endif
|
| -const WrapperTypeInfo V8DataView::wrapperTypeInfo = { gin::kEmbedderBlink, 0, V8DataView::refObject, V8DataView::derefObject, V8DataView::trace, 0, 0, V8DataView::preparePrototypeAndInterfaceObject, V8DataView::installConditionallyEnabledProperties, "DataView", &V8ArrayBufferView::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::GarbageCollectedObject };
|
| +const WrapperTypeInfo V8DataView::wrapperTypeInfo = { gin::kEmbedderBlink, 0, V8DataView::refObject, V8DataView::derefObject, V8DataView::trace, 0, 0, V8DataView::preparePrototypeAndInterfaceObject, V8DataView::installConditionallyEnabledProperties, "DataView", &V8ArrayBufferView::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject };
|
| #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| #pragma clang diagnostic pop
|
| #endif
|
| @@ -47,7 +47,7 @@
|
|
|
| v8::Local<v8::DataView> v8View = object.As<v8::DataView>();
|
| v8::Local<v8::Object> arrayBuffer = v8View->Buffer();
|
| - TestDataView* typedArray = nullptr;
|
| + RefPtr<TestDataView> typedArray;
|
| if (arrayBuffer->IsArrayBuffer()) {
|
| typedArray = TestDataView::create(V8ArrayBuffer::toImpl(arrayBuffer), v8View->ByteOffset(), v8View->ByteLength());
|
| } else if (arrayBuffer->IsSharedArrayBuffer()) {
|
| @@ -68,10 +68,12 @@
|
|
|
| void V8DataView::refObject(ScriptWrappable* scriptWrappable)
|
| {
|
| + scriptWrappable->toImpl<TestDataView>()->ref();
|
| }
|
|
|
| void V8DataView::derefObject(ScriptWrappable* scriptWrappable)
|
| {
|
| + scriptWrappable->toImpl<TestDataView>()->deref();
|
| }
|
|
|
| } // namespace blink
|
|
|