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

Issue 1609313002: Use BlobCallback in toBlob instead of FileCallback (Closed)

Created:
4 years, 11 months ago by xlai (Olivia)
Modified:
4 years, 11 months ago
CC:
chromium-reviews, dshwang, tzik, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, nhiroki, dglazkov+blink, Rik, blink-reviews, kinuko+fileapi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use BlobCallback in toBlob instead of FileCallback Recently there's a spec change: https://github.com/whatwg/html/pull/391. BUG=568603 Committed: https://crrev.com/b04c7518b9583a8b7d86fe9526c180b3bbfabb78 Cr-Commit-Position: refs/heads/master@{#370846}

Patch Set 1 #

Patch Set 2 : Adding a small but impt test to verify resultant object from toBlob is Blob not File #

Patch Set 3 : Rebase master and Renamed mimeType to contentType to match other bits in Blob.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -147 lines) Patch
A third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-file-vs-blob.html View 1 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-file-vs-blob-expected.txt View 1 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fileapi/Blob.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fileapi/Blob.cpp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/fileapi/BlobCallback.h View 1 chunk +8 lines, -8 lines 0 comments Download
A + third_party/WebKit/Source/core/fileapi/BlobCallback.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fileapi/File.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fileapi/File.cpp View 1 chunk +0 lines, -13 lines 0 comments Download
D third_party/WebKit/Source/core/fileapi/FileCallback.h View 1 chunk +0 lines, -49 lines 0 comments Download
D third_party/WebKit/Source/core/fileapi/FileCallback.idl View 1 chunk +0 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/FileEntry.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/FileEntry.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/FileEntry.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/filesystem/FileSystemCallbacks.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/FileSystemCallbacks.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/InspectorFileSystemAgent.cpp View 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
xlai (Olivia)
Hi, this is a second potential solution to bug 568603 (the other code review issue ...
4 years, 11 months ago (2016-01-20 18:11:35 UTC) #3
kinuko
On 2016/01/20 18:11:35, Olivia wrote: > Hi, this is a second potential solution to bug ...
4 years, 11 months ago (2016-01-21 09:16:26 UTC) #4
Justin Novosad
Thanks for taking care of this. lgtm
4 years, 11 months ago (2016-01-21 18:31:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1609313002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609313002/40001
4 years, 11 months ago (2016-01-21 21:13:07 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-22 00:24:44 UTC) #10
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/b04c7518b9583a8b7d86fe9526c180b3bbfabb78 Cr-Commit-Position: refs/heads/master@{#370846}
4 years, 11 months ago (2016-01-22 00:25:52 UTC) #12
philipj_slow
4 years, 11 months ago (2016-01-28 04:27:12 UTC) #13
Message was sent while issue was closed.
On 2016/01/20 18:11:35, Olivia wrote:
> @philipj: Will this solution be more conformant to the new spec change?

This had already landed when I saw it, so I put it on my "to check later" list.
It's not later, and this LGTM. Other than the callback function vs. callback
interface issue, this is now entirely in line with the spec AFAICT.

Powered by Google App Engine
This is Rietveld 408576698