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

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

Issue 2555213002: Implement color management for ImageData (Closed)
Patch Set: Addressing issues Created 4 years 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/DOMTypedArray.h
diff --git a/third_party/WebKit/Source/core/dom/DOMTypedArray.h b/third_party/WebKit/Source/core/dom/DOMTypedArray.h
index 292003a003c25f578ed6a19bcde7f3b76f33230c..f4b6893b79d5d27013bfb7c67c2a7a3d30fe174a 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(ThisType));
return buffer ? create(buffer.release(), 0, length) : nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698