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

Unified Diff: Source/bindings/dart/custom/DartXMLHttpRequestCustom.cpp

Issue 22877041: Map typed data to ArrayBufferView on xhr send (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 7 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/dart/custom/DartXMLHttpRequestCustom.cpp
diff --git a/Source/bindings/dart/custom/DartXMLHttpRequestCustom.cpp b/Source/bindings/dart/custom/DartXMLHttpRequestCustom.cpp
index 4f39392951e104feffb01fd613574f03f821b2a2..9932f274ff181836f44289141067f0581727743e 100644
--- a/Source/bindings/dart/custom/DartXMLHttpRequestCustom.cpp
+++ b/Source/bindings/dart/custom/DartXMLHttpRequestCustom.cpp
@@ -149,10 +149,10 @@ void sendCallback(Dart_NativeArguments args)
goto fail;
receiver->send(asDOMFormData, es);
} else if (DartUtilities::isTypedData(arg1)) {
- RefPtr<ArrayBuffer> asArrayBuffer = DartUtilities::dartToArrayBuffer(arg1, exception);
+ RefPtr<ArrayBufferView> asArrayBufferView = DartUtilities::dartToArrayBufferView(arg1, exception);
if (exception)
goto fail;
- receiver->send(asArrayBuffer.get(), es);
+ receiver->send(asArrayBufferView.get(), es);
siva 2013/08/23 20:06:53 I think there is a bug in both DartUtilities::dart
} else {
DartStringAdapter asString = DartUtilities::dartToString(arg1, exception);
if (exception)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698