Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: third_party/WebKit/Source/core/dom/DOMDataView.h

Issue 1964183004: Revert of Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/DOMDataView.h
diff --git a/third_party/WebKit/Source/core/dom/DOMDataView.h b/third_party/WebKit/Source/core/dom/DOMDataView.h
index f18d435d7fa2d095f95e762d9a41ecc1263d34f3..2b54c4517fa029d5cf523f682c54a98dd6b21da9 100644
--- a/third_party/WebKit/Source/core/dom/DOMDataView.h
+++ b/third_party/WebKit/Source/core/dom/DOMDataView.h
@@ -15,12 +15,12 @@
public:
typedef char ValueType;
- static DOMDataView* create(DOMArrayBufferBase*, unsigned byteOffset, unsigned byteLength);
+ static PassRefPtr<DOMDataView> create(PassRefPtr<DOMArrayBufferBase>, unsigned byteOffset, unsigned byteLength);
v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationContext) override;
private:
- DOMDataView(PassRefPtr<WTF::ArrayBufferView> dataView, DOMArrayBufferBase* domArrayBuffer)
+ DOMDataView(PassRefPtr<WTF::ArrayBufferView> dataView, PassRefPtr<DOMArrayBufferBase> domArrayBuffer)
: DOMArrayBufferView(dataView, domArrayBuffer) { }
};
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMArrayPiece.cpp ('k') | third_party/WebKit/Source/core/dom/DOMDataView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698