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

Issue 1901153002: Implement createImageBitmap(SVG) of intrinsic size = 0 (Closed)

Created:
4 years, 8 months ago by xidachen
Modified:
4 years, 8 months ago
Reviewers:
davve, Justin Novosad
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement createImageBitmap(SVG) of intrinsic size = 0 When we have a SVG image whose intrinsic size is 0, then createImageBitmap from the above SVG image should throw InvalidStateError. Also, createImageBitmap with a cropRect should not throw. This CL adds a layout to verify that. BUG=604510 Committed: https://crrev.com/e1f01e9d0d2fadd0f3004833597486314a30287d Cr-Commit-Position: refs/heads/master@{#389805}

Patch Set 1 #

Total comments: 3

Patch Set 2 : layout tests updated #

Patch Set 3 : null check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -29 lines) Patch
M third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html View 1 1 chunk +63 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size-expected.txt View 1 1 chunk +20 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/resources/zeroSize.svg View 1 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.cpp View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp View 1 2 4 chunks +23 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (11 generated)
xidachen
Could you please take a look? https://codereview.chromium.org/1901153002/diff/1/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html File third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html (right): https://codereview.chromium.org/1901153002/diff/1/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html#newcode23 third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html:23: console.log("image2 loaded"); The ...
4 years, 8 months ago (2016-04-19 16:52:03 UTC) #2
Justin Novosad
> The test doesn't even get to this point. What you are saying is that ...
4 years, 8 months ago (2016-04-19 16:59:25 UTC) #3
Justin Novosad
Also, the spec PR has changed: If a crop rect is specified, the ImageBitmap creation ...
4 years, 8 months ago (2016-04-19 17:01:01 UTC) #4
xidachen
On 2016/04/19 16:59:25, Justin Novosad wrote: > > The test doesn't even get to this ...
4 years, 8 months ago (2016-04-19 17:03:59 UTC) #5
Justin Novosad
On 2016/04/19 17:03:59, xidachen wrote: > On 2016/04/19 16:59:25, Justin Novosad wrote: > > > ...
4 years, 8 months ago (2016-04-19 17:22:29 UTC) #6
davve
https://codereview.chromium.org/1901153002/diff/1/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html File third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html (right): https://codereview.chromium.org/1901153002/diff/1/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html#newcode23 third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html:23: console.log("image2 loaded"); On 2016/04/19 16:52:03, xidachen wrote: > The ...
4 years, 8 months ago (2016-04-19 19:31:47 UTC) #7
davve
On 2016/04/19 17:22:29, Justin Novosad wrote: > Sifting through the spec, I found a way ...
4 years, 8 months ago (2016-04-20 11:48:29 UTC) #8
Justin Novosad
Right. I am not familiar with this part of the spec either. I misread it. ...
4 years, 8 months ago (2016-04-20 13:28:23 UTC) #9
Justin Novosad
Right. I am not familiar with this part of the spec either. I misread it. ...
4 years, 8 months ago (2016-04-20 13:28:24 UTC) #10
davve
https://codereview.chromium.org/1901153002/diff/1/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html File third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html (right): https://codereview.chromium.org/1901153002/diff/1/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html#newcode23 third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html:23: console.log("image2 loaded"); On 2016/04/19 19:31:47, David Vest wrote: > ...
4 years, 8 months ago (2016-04-21 09:50:48 UTC) #11
xidachen
On 2016/04/21 09:50:48, David Vest wrote: > https://codereview.chromium.org/1901153002/diff/1/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html > File > third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html > (right): > ...
4 years, 8 months ago (2016-04-21 12:15:36 UTC) #12
xidachen
another gentle ping :) createImageBitmap(SVG) throws, createImageBitmap(SVG, cropRect) doesn't throw.
4 years, 8 months ago (2016-04-25 15:35:24 UTC) #15
Justin Novosad
On 2016/04/21 12:15:36, xidachen wrote: > I saw the recent specs change of supporting createImageBitmap ...
4 years, 8 months ago (2016-04-25 15:41:17 UTC) #16
Justin Novosad
lgtm
4 years, 8 months ago (2016-04-25 15:44:08 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901153002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901153002/20001
4 years, 8 months ago (2016-04-25 16:54:50 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901153002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901153002/40001
4 years, 8 months ago (2016-04-26 14:36:30 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-26 15:51:54 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901153002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901153002/40001
4 years, 8 months ago (2016-04-26 16:41:47 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-26 16:47:11 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 16:48:15 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e1f01e9d0d2fadd0f3004833597486314a30287d
Cr-Commit-Position: refs/heads/master@{#389805}

Powered by Google App Engine
This is Rietveld 408576698