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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp

Issue 2617073002: Additional DCHECKs when accessing SharedArrayBuffer (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp
index 48d549b9f92eaab29f028c9e928efd2113b1dcf0..25443dc5663b8f0dcfb85b04a3c3eaae4cd09169 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp
+++ b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp
@@ -36,9 +36,10 @@ ArrayBufferView::ArrayBufferView(PassRefPtr<ArrayBuffer> buffer,
m_buffer(buffer),
m_prevView(nullptr),
m_nextView(nullptr) {
- m_baseAddress = m_buffer
- ? (static_cast<char*>(m_buffer->data()) + m_byteOffset)
- : nullptr;
+ m_baseAddress =
+ m_buffer
+ ? (static_cast<char*>(m_buffer->dataMaybeShared()) + m_byteOffset)
+ : nullptr;
if (m_buffer)
m_buffer->addView(this);
}
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698