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

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

Issue 2730943002: XMLHttpRequest: return null upon failing responseArrayBuffer allocation. (Closed)
Patch Set: mirror updated spec, and return |null| for failed allocs Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/core/dom/DOMArrayBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/DOMArrayBuffer.h
diff --git a/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h b/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h
index 6bfee912323849e8a0ef3aac93819a8100dceaae..5ce8c463774ba8bb69566ddabf49501e8a0ca9a4 100644
--- a/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h
+++ b/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h
@@ -31,11 +31,8 @@ class CORE_EXPORT DOMArrayBuffer final : public DOMArrayBufferBase {
// Only for use by XMLHttpRequest::responseArrayBuffer and
// Internals::serializeObject.
- static DOMArrayBuffer* createUninitialized(unsigned numElements,
- unsigned elementByteSize) {
- return create(
- WTF::ArrayBuffer::createUninitialized(numElements, elementByteSize));
- }
+ static DOMArrayBuffer* createUninitializedOrNull(unsigned numElements,
+ unsigned elementByteSize);
DOMArrayBuffer* slice(int begin, int end) const {
return create(buffer()->slice(begin, end));
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/DOMArrayBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698