| Index: third_party/WebKit/Source/core/dom/DOMTypedArray.h
|
| diff --git a/third_party/WebKit/Source/core/dom/DOMTypedArray.h b/third_party/WebKit/Source/core/dom/DOMTypedArray.h
|
| index 292003a003c25f578ed6a19bcde7f3b76f33230c..9dff9833f816dc9569baa5f2bf69904ed3cb3496 100644
|
| --- a/third_party/WebKit/Source/core/dom/DOMTypedArray.h
|
| +++ b/third_party/WebKit/Source/core/dom/DOMTypedArray.h
|
| @@ -54,7 +54,8 @@ class CORE_TEMPLATE_CLASS_EXPORT DOMTypedArray final
|
| }
|
|
|
| static ThisType* createOrNull(unsigned length) {
|
| - RefPtr<WTF::ArrayBuffer> buffer = WTF::ArrayBuffer::createOrNull(length, 1);
|
| + RefPtr<WTF::ArrayBuffer> buffer =
|
| + WTF::ArrayBuffer::createOrNull(length, sizeof(ValueType));
|
| return buffer ? create(buffer.release(), 0, length) : nullptr;
|
| }
|
|
|
|
|