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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: remove unused checks 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 523b9f6ef5cde2031bb622495393e8dbd1f13559..9fa8d4f1f6afde0c941f2811e264200bfb2d2f2e 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& exceptionState) {
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, exceptionState);
}
ASSERT(input.isArrayBuffer());

Powered by Google App Engine
This is Rietveld 408576698