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

Issue 196343032: Implement ImageData constructors. (Closed)

Created:
6 years, 9 months ago by sof
Modified:
6 years, 9 months ago
CC:
blink-reviews, watchdog-blink-watchlist_google.com, dglazkov+blink, arv+blink, adamk+blink_chromium.org, Inactive, bajones
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Implement ImageData constructors. The spec now defines a pair of ImageData constructors, http://www.whatwg.org/specs/web-apps/current-work/#imagedata Provide an implementation of both here. R= BUG=338804 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170325

Patch Set 1 #

Patch Set 2 : Have constructor instance wrappers keep a 'data' property instead. #

Total comments: 15

Patch Set 3 : Tidy up input validation + mark imported test as stale instead. #

Patch Set 4 : duplicate StaleTestExpectations entry for virtual version #

Patch Set 5 : Add explicit release() #

Patch Set 6 : Generate code that custom wrap()s constructor instances #

Total comments: 1

Patch Set 7 : Rebased #

Total comments: 5

Patch Set 8 : Add 'new ImageData(data, w, h)' test #

Patch Set 9 : Test over RGBA values #

Patch Set 10 : Added the ImageDataConstructor runtime feature; status=experimental #

Patch Set 11 : Restrict feature test to the actual constructor(s) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -0 lines) Patch
M LayoutTests/StaleTestExpectations View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-ImageData-constructor.html View 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-ImageData-constructor-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +41 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/script-tests/canvas-ImageData.js View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
M Source/core/html/ImageData.h View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/html/ImageData.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +67 lines, -0 lines 0 comments Download
M Source/core/html/ImageData.idl View 1 2 3 4 5 10 1 chunk +3 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
sof
Please take a look. I'm making a pair of assumptions here regarding the treatment of ...
6 years, 9 months ago (2014-03-19 17:18:05 UTC) #1
Ken Russell (switch to Gerrit)
+bajones
6 years, 9 months ago (2014-03-19 17:33:57 UTC) #2
Inactive
https://codereview.chromium.org/196343032/diff/20001/Source/core/html/ImageData.idl File Source/core/html/ImageData.idl (right): https://codereview.chromium.org/196343032/diff/20001/Source/core/html/ImageData.idl#newcode30 Source/core/html/ImageData.idl:30: CustomConstructor, Even if the constructor is custom, you're expected ...
6 years, 9 months ago (2014-03-19 18:59:48 UTC) #3
Inactive
https://codereview.chromium.org/196343032/diff/20001/LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html File LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html (right): https://codereview.chromium.org/196343032/diff/20001/LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html#newcode16 LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html:16: try { var _thrown = false; new window.ImageData(1,1); } ...
6 years, 9 months ago (2014-03-19 19:07:14 UTC) #4
Justin Novosad
I did not see an "Intent to implement" thread for this on blink-dev.
6 years, 9 months ago (2014-03-19 19:09:21 UTC) #5
sof
https://codereview.chromium.org/196343032/diff/20001/Source/core/html/ImageData.idl File Source/core/html/ImageData.idl (right): https://codereview.chromium.org/196343032/diff/20001/Source/core/html/ImageData.idl#newcode30 Source/core/html/ImageData.idl:30: CustomConstructor, On 2014/03/19 18:59:48, Chris Dumez wrote: ... > ...
6 years, 9 months ago (2014-03-19 19:20:34 UTC) #6
Justin Novosad
https://codereview.chromium.org/196343032/diff/20001/LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html File LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html (right): https://codereview.chromium.org/196343032/diff/20001/LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html#newcode16 LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html:16: try { var _thrown = false; new window.ImageData(1,1); } ...
6 years, 9 months ago (2014-03-19 19:35:54 UTC) #7
sof
https://codereview.chromium.org/196343032/diff/20001/Source/core/html/ImageData.cpp File Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/196343032/diff/20001/Source/core/html/ImageData.cpp#newcode66 Source/core/html/ImageData.cpp:66: exceptionState.throwDOMException(IndexSizeError, String::format("The source %s is zero or non-finite.", width ...
6 years, 9 months ago (2014-03-19 19:41:09 UTC) #8
sof
https://codereview.chromium.org/196343032/diff/20001/LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html File LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html (right): https://codereview.chromium.org/196343032/diff/20001/LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html#newcode16 LayoutTests/canvas/philip/tests/2d.imageData.object.ctor.html:16: try { var _thrown = false; new window.ImageData(1,1); } ...
6 years, 9 months ago (2014-03-19 22:19:16 UTC) #9
sof
ping?
6 years, 9 months ago (2014-03-20 22:39:23 UTC) #10
sof
On 2014/03/19 17:18:05, sof wrote: > Please take a look. > > I'm making a ...
6 years, 9 months ago (2014-03-21 07:43:56 UTC) #11
sof
On 2014/03/21 07:43:56, sof wrote: ... > > haraken: if there isn't a way to ...
6 years, 9 months ago (2014-03-21 16:37:52 UTC) #12
Justin Novosad
On 2014/03/21 16:37:52, sof wrote: > On 2014/03/21 07:43:56, sof wrote: > ... > > ...
6 years, 9 months ago (2014-03-21 18:59:02 UTC) #13
sof
On 2014/03/21 18:59:02, junov wrote: > On 2014/03/21 16:37:52, sof wrote: > > On 2014/03/21 ...
6 years, 9 months ago (2014-03-21 19:33:18 UTC) #14
Justin Novosad
On 2014/03/21 19:33:18, sof wrote: > On 2014/03/21 18:59:02, junov wrote: > > On 2014/03/21 ...
6 years, 9 months ago (2014-03-21 19:36:43 UTC) #15
sof
On 2014/03/21 19:36:43, junov wrote: > On 2014/03/21 19:33:18, sof wrote: > > On 2014/03/21 ...
6 years, 9 months ago (2014-03-21 20:50:09 UTC) #16
Nils Barth (inactive)
+haraken: is the bindings change ok? The bindings changes look ok at a glance, and ...
6 years, 9 months ago (2014-03-24 02:14:20 UTC) #17
haraken
The binding change looks OK but I want to make the change in a separate ...
6 years, 9 months ago (2014-03-24 02:18:16 UTC) #18
Nils Barth (inactive)
On 2014/03/24 02:18:16, haraken wrote: > The binding change looks OK but I want to ...
6 years, 9 months ago (2014-03-24 03:14:37 UTC) #19
sof
Awesome :) I'll wait for both to land and rebase.
6 years, 9 months ago (2014-03-24 06:11:10 UTC) #20
sof
On 2014/03/24 06:11:10, sof wrote: > Awesome :) I'll wait for both to land and ...
6 years, 9 months ago (2014-03-24 11:20:17 UTC) #21
Justin Novosad
At this point we can either: a) wait for three API owner approvals on the ...
6 years, 9 months ago (2014-03-24 14:00:11 UTC) #22
Justin Novosad
The layout test needs to verify that the version of the constructor that takes a ...
6 years, 9 months ago (2014-03-24 14:21:08 UTC) #23
sof
Thanks, hopefully addressed. I'll await owner feedback from the 'intent' until Wednesday or so before ...
6 years, 9 months ago (2014-03-24 14:57:21 UTC) #24
Justin Novosad
On 2014/03/24 14:57:21, sof wrote: lgtm API owner lgtm still required for landing as is ...
6 years, 9 months ago (2014-03-24 15:03:55 UTC) #25
sof
Thanks to owners on this CL (reviewers and Cc:ers) for supporting the "intent". But it ...
6 years, 9 months ago (2014-03-26 18:45:49 UTC) #26
Justin Novosad
On 2014/03/26 18:45:49, sof wrote: > Thanks to owners on this CL (reviewers and Cc:ers) ...
6 years, 9 months ago (2014-03-26 20:06:12 UTC) #27
sof
Constructor overloads are now behind an experimental flag, please take a look.
6 years, 9 months ago (2014-03-28 10:31:45 UTC) #28
Justin Novosad
On 2014/03/28 10:31:45, sof wrote: > Constructor overloads are now behind an experimental flag, please ...
6 years, 9 months ago (2014-03-28 13:03:52 UTC) #29
sof
On 2014/03/28 13:03:52, junov wrote: > On 2014/03/28 10:31:45, sof wrote: > > Constructor overloads ...
6 years, 9 months ago (2014-03-28 13:07:08 UTC) #30
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 9 months ago (2014-03-28 13:26:36 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/196343032/190001
6 years, 9 months ago (2014-03-28 13:26:38 UTC) #32
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 13:34:56 UTC) #33
Message was sent while issue was closed.
Change committed as 170325

Powered by Google App Engine
This is Rietveld 408576698