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

Issue 2380713004: [GeometryInterface] Add setMatrixValue(transfromList) function. (Closed)

Created:
4 years, 2 months ago by Hwanseung Lee
Modified:
4 years, 1 month 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 setMatrixValue(transfromList) function. 1. if transformList is the empty string, set in to the string "matrix(1, 0, 0, 1, 0, 0)". 2. Parse transformList by following the syntax description[1]. if parsing failed, throw SyntaxError. 3. Set is2D to false if the <transform-list> consists of any 3D Transform functions. Otherwise set is2D to true. 4. Transform all <transform-function>s to 4x4 matrices. 5. Post-multiply all matrices from left to right. 6. return the current matrix. spec list: https://drafts.fxtf.org/geometry/#dom-dommatrix-setmatrixvalue [1] = https://drafts.csswg.org/css-transforms-1/#svg-syntax BUG=388780, 645884 Committed: https://crrev.com/1b84ec0976538570d0407d95677038679225dd0e Cr-Commit-Position: refs/heads/master@{#428352}

Patch Set 1 #

Total comments: 1

Patch Set 2 : remove dependency. #

Total comments: 2

Patch Set 3 : rebase. #

Patch Set 4 : rebase & check relative length unit. #

Total comments: 21

Patch Set 5 : [GeometryInterface] Add setMatrixValue(transfromList) function. #

Total comments: 24

Patch Set 6 : [GeometryInterface] Add setMatrixValue(transfromList) function. #

Total comments: 16

Patch Set 7 : [GeometryInterface] Add setMatrixValue(transfromList) function. #

Total comments: 8

Patch Set 8 : [GeometryInterface] Add setMatrixValue(transfromList) function. #

Patch Set 9 : [GeometryInterface] Add setMatrixValue(transfromList) function. #

Total comments: 4

Patch Set 10 : [GeometryInterface] Add setMatrixValue(transfromList) function. #

Patch Set 11 : [GeometryInterface] Add setMatrixValue(transfromList) function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +293 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/TransformBuilder.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/TransformBuilder.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMMatrix.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMMatrix.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +57 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMMatrix.idl View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 67 (39 generated)
Hwanseung Lee
@dominicc, zino. PTAL. this CL is based on rotateAxisAngle CL(https://codereview.chromium.org/2365153002/). so if you weren't review ...
4 years, 2 months ago (2016-09-29 17:31:58 UTC) #5
Hwanseung Lee
https://codereview.chromium.org/2380713004/diff/1/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html (right): https://codereview.chromium.org/2380713004/diff/1/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html#newcode60 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html:60: expectedMatrix.rotateAxisAngleSelf(0, 0, 1, 90); patch_set 1 is failed in ...
4 years, 2 months ago (2016-09-29 23:15:55 UTC) #8
dominicc (has gone to gerrit)
On 2016/09/29 at 23:15:55, hs1217.lee wrote: > https://codereview.chromium.org/2380713004/diff/1/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html > File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html (right): > > https://codereview.chromium.org/2380713004/diff/1/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html#newcode60 ...
4 years, 2 months ago (2016-10-05 04:33:25 UTC) #9
Hwanseung Lee
@shanestephens PTAL. could review about CSS parsing at setMatrixValue method? setMatrixValue method is located DOMMatrix.cpp. ...
4 years, 2 months ago (2016-10-05 16:24:05 UTC) #11
Hwanseung Lee
@chrishtr PTAL. could review about CSS parsing at setMatrixValue method? setMatrixValue method is located DOMMatrix.cpp. ...
4 years, 2 months ago (2016-10-06 14:36:28 UTC) #13
Hwanseung Lee
@meade PTAL. could review about CSS parsing at setMatrixValue method? setMatrixValue method is located DOMMatrix.cpp. ...
4 years, 2 months ago (2016-10-12 12:00:01 UTC) #15
meade_UTC10
All your bots are red? I left a comment, but I think Tim would be ...
4 years, 2 months ago (2016-10-13 04:18:50 UTC) #21
Hwanseung Lee
@Eddy. trybot was failed. because these day, blink code was reformatted. so this code need ...
4 years, 2 months ago (2016-10-13 17:05:11 UTC) #22
Timothy Loh
It doesn't look like step 2 in the spec text (pasted at the bottom of ...
4 years, 2 months ago (2016-10-14 02:19:01 UTC) #27
Hwanseung Lee
On 2016/10/14 02:19:01, Timothy Loh wrote: > It doesn't look like step 2 in the ...
4 years, 2 months ago (2016-10-16 14:06:34 UTC) #29
meade_UTC10
https://codereview.chromium.org/2380713004/diff/60001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html (right): https://codereview.chromium.org/2380713004/diff/60001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html#newcode197 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html:197: }, "can't parsing without absolute unit."); Nit: English grammar. ...
4 years, 2 months ago (2016-10-17 03:22:28 UTC) #32
Hwanseung Lee
@Eddy i fixed it follow your comment. https://codereview.chromium.org/2380713004/diff/60001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html (right): https://codereview.chromium.org/2380713004/diff/60001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html#newcode197 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html:197: }, "can't ...
4 years, 2 months ago (2016-10-18 16:37:53 UTC) #35
meade_UTC10
lgtm You'll still need an OWNER to review, since I don't have OWNERS.
4 years, 2 months ago (2016-10-18 23:41:01 UTC) #36
Timothy Loh
https://codereview.chromium.org/2380713004/diff/80001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html (right): https://codereview.chromium.org/2380713004/diff/80001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html#newcode106 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html:106: var matrix2d = new DOMMatrix(); Why the name 'matrix2d'? ...
4 years, 2 months ago (2016-10-19 02:59:08 UTC) #39
Hwanseung Lee
@Timothy i fix code follow your comment. PTAL. thank you. https://codereview.chromium.org/2380713004/diff/80001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html (right): https://codereview.chromium.org/2380713004/diff/80001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html#newcode106 ...
4 years, 1 month ago (2016-10-22 14:44:57 UTC) #42
Timothy Loh
Almost there. https://codereview.chromium.org/2380713004/diff/80001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp File third_party/WebKit/Source/core/dom/DOMMatrix.cpp (right): https://codereview.chromium.org/2380713004/diff/80001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp#newcode222 third_party/WebKit/Source/core/dom/DOMMatrix.cpp:222: static inline PassRefPtr<ComputedStyle> createInitialStyle() { On 2016/10/22 ...
4 years, 1 month ago (2016-10-24 04:18:30 UTC) #43
Hwanseung Lee
@Timothy PTAL. Thank you. https://codereview.chromium.org/2380713004/diff/80001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp File third_party/WebKit/Source/core/dom/DOMMatrix.cpp (right): https://codereview.chromium.org/2380713004/diff/80001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp#newcode222 third_party/WebKit/Source/core/dom/DOMMatrix.cpp:222: static inline PassRefPtr<ComputedStyle> createInitialStyle() { ...
4 years, 1 month ago (2016-10-24 13:23:38 UTC) #44
Timothy Loh
https://codereview.chromium.org/2380713004/diff/100001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html (right): https://codereview.chromium.org/2380713004/diff/100001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html#newcode8 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html:8: var matrix = new DOMMatrix(); On 2016/10/24 13:23:37, Hwanseung ...
4 years, 1 month ago (2016-10-25 04:48:01 UTC) #49
Hwanseung Lee
@Timothy. PTAL. i did rebase this code from master. and i fixed some code. https://codereview.chromium.org/2380713004/diff/120001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html ...
4 years, 1 month ago (2016-10-26 14:51:43 UTC) #50
Timothy Loh
I think you missed some comments from my previous reply (they were attached to an ...
4 years, 1 month ago (2016-10-27 01:40:37 UTC) #53
Hwanseung Lee
On 2016/10/27 01:40:37, Timothy Loh wrote: > I think you missed some comments from my ...
4 years, 1 month ago (2016-10-27 01:44:40 UTC) #54
Timothy Loh
https://codereview.chromium.org/2380713004/diff/160001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp File third_party/WebKit/Source/core/dom/DOMMatrix.cpp (right): https://codereview.chromium.org/2380713004/diff/160001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp#newcode280 third_party/WebKit/Source/core/dom/DOMMatrix.cpp:280: exceptionState.throwDOMException( Does this exception ever get thrown? From what ...
4 years, 1 month ago (2016-10-27 02:38:42 UTC) #55
Hwanseung Lee
@Timothy PTAL. thank you. https://codereview.chromium.org/2380713004/diff/100001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html (right): https://codereview.chromium.org/2380713004/diff/100001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html#newcode8 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html:8: var matrix = new DOMMatrix(); ...
4 years, 1 month ago (2016-10-27 16:24:48 UTC) #58
Timothy Loh
lgtm but please update the code/test based on my comments below. https://codereview.chromium.org/2380713004/diff/100001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html (right): ...
4 years, 1 month ago (2016-10-28 02:50:04 UTC) #59
Hwanseung Lee
@timothy i fixed a some code follow your guide. thank you. https://codereview.chromium.org/2380713004/diff/100001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-setMatrixValue.html (right): ...
4 years, 1 month ago (2016-10-28 12:17:58 UTC) #60
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/2380713004/200001
4 years, 1 month ago (2016-10-28 12:18:17 UTC) #63
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 1 month ago (2016-10-28 13:23:40 UTC) #65
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 13:26:43 UTC) #67
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/1b84ec0976538570d0407d95677038679225dd0e
Cr-Commit-Position: refs/heads/master@{#428352}

Powered by Google App Engine
This is Rietveld 408576698