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

Issue 2459233002: Consolidate implementation of ImageBitmapRenderingContext (Closed)

Created:
4 years, 1 month ago by xidachen
Modified:
4 years, 1 month ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, blink-reviews, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Consolidate implementation of ImageBitmapRenderingContext To prepare for the shipping of ImageBitmapRenderingContext, we need more layout test coverage. When we add more tests, we found that there are some problem in our implementation. 1. transferFromImageBitmap API should be capable of throwing DOMException. 2. After calling transferFromImageBitmap(bitmap), the bitmap should be detached. 3. When calling transferFromImageBitmap(bitmap), if bitmap has already detached, this call should throw an InvalidStateError DOMException. The corresponding layout test cases are added. BUG=659156 Committed: https://crrev.com/300be765de46941accbb0d12fee1dba27fd06bb0 Committed: https://crrev.com/807358546cf4a8451044f63c3198039004f80de1 Cr-Original-Commit-Position: refs/heads/master@{#428988} Cr-Commit-Position: refs/heads/master@{#430954}

Patch Set 1 #

Total comments: 1

Patch Set 2 : address comments #

Patch Set 3 : fix a layout test failure #

Messages

Total messages: 30 (19 generated)
xidachen
PTAL
4 years, 1 month ago (2016-10-31 02:07:49 UTC) #2
Justin Novosad
lgtm with nit https://codereview.chromium.org/2459233002/diff/1/third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-nullability.html File third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-nullability.html (right): https://codereview.chromium.org/2459233002/diff/1/third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-nullability.html#newcode37 third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-nullability.html:37: assert_throws("InvalidStateError", function() {bitmapCtx.transferFromImageBitmap(image);}); Would be cleaner ...
4 years, 1 month ago (2016-10-31 14:04:39 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2459233002/40001
4 years, 1 month ago (2016-11-01 12:11:55 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-01 13:18:42 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/300be765de46941accbb0d12fee1dba27fd06bb0 Cr-Commit-Position: refs/heads/master@{#428988}
4 years, 1 month ago (2016-11-01 13:20:55 UTC) #16
please use gerrit instead
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2464093002/ by rouslan@chromium.org. ...
4 years, 1 month ago (2016-11-01 14:50:05 UTC) #17
xidachen
junov@: Let's re-land this CL. I just did a rebase and there is nothing to ...
4 years, 1 month ago (2016-11-09 13:40:23 UTC) #18
Justin Novosad
On 2016/11/09 13:40:23, xidachen wrote: > junov@: Let's re-land this CL. I just did a ...
4 years, 1 month ago (2016-11-09 15:20:24 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2459233002/40001
4 years, 1 month ago (2016-11-09 16:57:23 UTC) #26
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 1 month ago (2016-11-09 17:03:09 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 17:07:11 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/807358546cf4a8451044f63c3198039004f80de1
Cr-Commit-Position: refs/heads/master@{#430954}

Powered by Google App Engine
This is Rietveld 408576698