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

Unified Diff: third_party/WebKit/Source/modules/encoding/TextDecoder.cpp

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 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/modules/encoding/TextDecoder.cpp
diff --git a/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp b/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp
index 07e86a1072737341ed067fd59d33057f9a5581ca..b8f14ac888821a0a3f52711de52badc9294b2dbb 100644
--- a/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp
+++ b/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp
@@ -81,9 +81,9 @@ String TextDecoder::decode(const BufferSource& input,
ExceptionState& exception_state) {
ASSERT(!input.isNull());
if (input.isArrayBufferView()) {
- const char* start =
- static_cast<const char*>(input.getAsArrayBufferView()->BaseAddress());
- size_t length = input.getAsArrayBufferView()->byteLength();
+ const char* start = static_cast<const char*>(
+ input.getAsArrayBufferView().View()->BaseAddress());
+ size_t length = input.getAsArrayBufferView().View()->byteLength();
return decode(start, length, options, exception_state);
}
ASSERT(input.isArrayBuffer());
« no previous file with comments | « third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp ('k') | third_party/WebKit/Source/modules/encoding/TextEncoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698