OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "core/dom/DOMArrayBuffer.h" | 6 #include "core/dom/DOMArrayBuffer.h" |
7 | 7 |
8 #include "bindings/core/v8/DOMDataStore.h" | 8 #include "bindings/core/v8/DOMDataStore.h" |
9 #include "bindings/core/v8/V8DOMWrapper.h" | 9 #include "bindings/core/v8/V8DOMWrapper.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 // wrapper already created and associated must be used. | 26 // wrapper already created and associated must be used. |
27 v8::Local<v8::Object> associatedWrapper = DOMDataStore::getWrapper(this, iso
late); | 27 v8::Local<v8::Object> associatedWrapper = DOMDataStore::getWrapper(this, iso
late); |
28 if (UNLIKELY(!associatedWrapper.IsEmpty())) | 28 if (UNLIKELY(!associatedWrapper.IsEmpty())) |
29 return associatedWrapper; | 29 return associatedWrapper; |
30 | 30 |
31 return associateWithWrapper(isolate, wrapperTypeInfo, wrapper); | 31 return associateWithWrapper(isolate, wrapperTypeInfo, wrapper); |
32 } | 32 } |
33 | 33 |
34 v8::Local<v8::Object> DOMArrayBuffer::associateWithWrapper(v8::Isolate* isolate,
const WrapperTypeInfo* wrapperTypeInfo, v8::Local<v8::Object> wrapper) | 34 v8::Local<v8::Object> DOMArrayBuffer::associateWithWrapper(v8::Isolate* isolate,
const WrapperTypeInfo* wrapperTypeInfo, v8::Local<v8::Object> wrapper) |
35 { | 35 { |
36 // This function does not set a deallocation observer to the underlying | |
37 // array buffer. It's a caller's duty. | |
38 | |
39 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperTypeIn
fo, wrapper); | 36 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperTypeIn
fo, wrapper); |
40 } | 37 } |
41 | 38 |
42 } // namespace blink | 39 } // namespace blink |
OLD | NEW |