| Index: third_party/WebKit/Source/modules/fetch/Response.cpp
|
| diff --git a/third_party/WebKit/Source/modules/fetch/Response.cpp b/third_party/WebKit/Source/modules/fetch/Response.cpp
|
| index b4230f41cae01d91b933b3359658bc275b0460fe..7476a48f13281db94a133bed85f8f4e1bd8e81a0 100644
|
| --- a/third_party/WebKit/Source/modules/fetch/Response.cpp
|
| +++ b/third_party/WebKit/Source/modules/fetch/Response.cpp
|
| @@ -63,8 +63,9 @@ FetchResponseData* createFetchResponseDataFromWebResponse(
|
| }
|
|
|
| response->replaceBodyStreamBuffer(new BodyStreamBuffer(
|
| - scriptState, new BlobBytesConsumer(scriptState->getExecutionContext(),
|
| - webResponse.blobDataHandle())));
|
| + scriptState,
|
| + new BlobBytesConsumer(scriptState->getExecutionContext(),
|
| + webResponse.blobDataHandle())));
|
|
|
| // Filter the response according to |webResponse|'s ResponseType.
|
| switch (webResponse.responseType()) {
|
| @@ -146,13 +147,15 @@ Response* Response::create(ScriptState* scriptState,
|
| new BlobBytesConsumer(executionContext, blob->blobDataHandle()));
|
| contentType = blob->type();
|
| } else if (body->IsArrayBuffer()) {
|
| - bodyBuffer = new BodyStreamBuffer(
|
| - scriptState, new FormDataBytesConsumer(
|
| - V8ArrayBuffer::toImpl(body.As<v8::Object>())));
|
| + bodyBuffer =
|
| + new BodyStreamBuffer(scriptState,
|
| + new FormDataBytesConsumer(
|
| + V8ArrayBuffer::toImpl(body.As<v8::Object>())));
|
| } else if (body->IsArrayBufferView()) {
|
| bodyBuffer = new BodyStreamBuffer(
|
| - scriptState, new FormDataBytesConsumer(
|
| - V8ArrayBufferView::toImpl(body.As<v8::Object>())));
|
| + scriptState,
|
| + new FormDataBytesConsumer(
|
| + V8ArrayBufferView::toImpl(body.As<v8::Object>())));
|
| } else if (V8FormData::hasInstance(body, isolate)) {
|
| RefPtr<EncodedFormData> formData =
|
| V8FormData::toImpl(body.As<v8::Object>())->encodeMultiPartFormData();
|
|
|