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

Issue 2309013002: [GeometryInterface] Add fromFloat32Array & fromFloat64Array function (Closed)

Created:
4 years, 3 months ago by Hwanseung Lee
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, Hwanseung Lee(hs1217.lee), rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[GeometryInterface] Add fromFloat32Array & fromFloat64Array function Return the result of invoking create a matrix of type DOMMatrixReadOnly or DOMMatrix as appropriate, with a sequence of numbers taking the values from Float32Array or Float64Array in the provided order. If array has 6 elements, Return a 2d matrix. If array has 16 elements, Return a 3d matrix. Otherwise, Throw a TypeError exception. spec list: https://drafts.fxtf.org/geometry/#dom-dommatrixreadonly-fromfloat32array https://drafts.fxtf.org/geometry/#dom-dommatrixreadonly-fromfloat64array https://drafts.fxtf.org/geometry/#dom-dommatrix-fromfloat32array https://drafts.fxtf.org/geometry/#dom-dommatrix-fromfloat64array BUG=388780 Committed: https://crrev.com/233ec454166d493cfab7aa31a530b45e7c2f2956 Cr-Commit-Position: refs/heads/master@{#417943}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Implement fromFloat32Array & fromFloat64Array function in DOMMatrix & DOMMatrixReadOnly. #

Total comments: 8

Patch Set 3 : fix a some test. #

Total comments: 2

Patch Set 4 : [GeometryInterface] Add fromFloat32Array & fromFloat64Array function #

Total comments: 3

Patch Set 5 : [GeometryInterface] Add fromFloat32Array & fromFloat64Array function #

Patch Set 6 : [GeometryInterface] Add fromFloat32Array & fromFloat64Array function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -23 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html View 1 2 3 4 2 chunks +106 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html View 1 2 3 4 2 chunks +108 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMMatrix.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMMatrix.cpp View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMMatrix.idl View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h View 1 2 3 4 5 2 chunks +24 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp View 1 2 3 4 5 1 chunk +20 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.idl View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (16 generated)
Hwanseung Lee
@dominicc, zino Please take a look. thank you.
4 years, 3 months ago (2016-09-03 12:17:05 UTC) #3
zino
Also, the first line(subject line) should be shorter than 72 characters. https://codereview.chromium.org/2309013002/diff/1/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp File third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp (right): ...
4 years, 3 months ago (2016-09-04 23:11:53 UTC) #4
Hwanseung Lee
@zino, dominicc PTAL again. https://codereview.chromium.org/2309013002/diff/1/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp File third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp (right): https://codereview.chromium.org/2309013002/diff/1/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp#newcode49 third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp:49: if (float32Array->length() == 6) { ...
4 years, 3 months ago (2016-09-05 12:58:48 UTC) #5
zino
Looks good but could you update commit description as well? The first line(subject line) should ...
4 years, 3 months ago (2016-09-05 16:59:25 UTC) #6
Hwanseung Lee
On 2016/09/05 16:59:25, zino wrote: > Looks good but could you update commit description as ...
4 years, 3 months ago (2016-09-05 22:29:27 UTC) #10
dominicc (has gone to gerrit)
Some comments inline. Could you simplify the description a bit? I think if all of ...
4 years, 3 months ago (2016-09-06 17:07:22 UTC) #11
Hwanseung Lee
@dominicc, zino could you review again? thank you. https://codereview.chromium.org/2309013002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html (right): https://codereview.chromium.org/2309013002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html#newcode64 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html:64: var ...
4 years, 3 months ago (2016-09-07 14:21:47 UTC) #14
dominicc (has gone to gerrit)
https://codereview.chromium.org/2309013002/diff/40001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html (right): https://codereview.chromium.org/2309013002/diff/40001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html#newcode182 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html:182: assert_throws(new TypeError(), function() { DOMMatrix.fromFloat32Array(new Float32Array(0)); }, Ah, this ...
4 years, 3 months ago (2016-09-07 17:44:31 UTC) #15
Hwanseung Lee
@dominicc i did fix test. could you review again? but i'm not sure. it is ...
4 years, 3 months ago (2016-09-08 14:25:09 UTC) #16
zino
https://codereview.chromium.org/2309013002/diff/60001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html (right): https://codereview.chromium.org/2309013002/diff/60001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html#newcode182 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html:182: assert_throws(new TypeError(), function() { DOMMatrix.fromFloat32Array(new Float32Array([1, 2, ,3, 4, ...
4 years, 3 months ago (2016-09-08 17:57:22 UTC) #17
zino
https://codereview.chromium.org/2309013002/diff/60001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html (right): https://codereview.chromium.org/2309013002/diff/60001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html#newcode182 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html:182: assert_throws(new TypeError(), function() { DOMMatrix.fromFloat32Array(new Float32Array([1, 2, ,3, 4, ...
4 years, 3 months ago (2016-09-08 18:09:40 UTC) #18
Hwanseung Lee
https://codereview.chromium.org/2309013002/diff/60001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html (right): https://codereview.chromium.org/2309013002/diff/60001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html#newcode182 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html:182: assert_throws(new TypeError(), function() { DOMMatrix.fromFloat32Array(new Float32Array([1, 2, ,3, 4, ...
4 years, 3 months ago (2016-09-09 00:49:04 UTC) #20
zino
lgtm but please wait for dominic's review.
4 years, 3 months ago (2016-09-10 14:29:34 UTC) #21
dominicc (has gone to gerrit)
lgtm Yeah, that is what I meant. Thanks!
4 years, 3 months ago (2016-09-12 05:27:17 UTC) #23
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/2309013002/100001
4 years, 3 months ago (2016-09-12 05:27:30 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/198127)
4 years, 3 months ago (2016-09-12 05:39:34 UTC) #26
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/2309013002/100001
4 years, 3 months ago (2016-09-12 05:45:48 UTC) #28
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/2309013002/120001
4 years, 3 months ago (2016-09-12 13:45:34 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 3 months ago (2016-09-12 15:27:27 UTC) #34
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 15:30:35 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/233ec454166d493cfab7aa31a530b45e7c2f2956
Cr-Commit-Position: refs/heads/master@{#417943}

Powered by Google App Engine
This is Rietveld 408576698