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

Issue 2516973002: [GeometryInferface] add Constructor(DOMString transformList). (Closed)

Created:
4 years, 1 month ago by Hwanseung Lee
Modified:
4 years 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

[GeometryInferface] add Constructor(DOMString transformList). 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 result of invoking create a matrix of type DOMMatrixReadOnly or DOMMatrix as appropriate. spec list: https://drafts.fxtf.org/geometry/#dom-dommatrix-dommatrix-transformlist [1] = https://drafts.csswg.org/css-transforms-1/#svg-syntax BUG=388780, 660819 Committed: https://crrev.com/59c27f138a1ef700d4adb552e8a9c0452d7a8d4e Cr-Commit-Position: refs/heads/master@{#438107}

Patch Set 1 #

Patch Set 2 : [WIP][GeometryInferface] add Constructor(DOMString transformList). #

Patch Set 3 : [GeometryInferface] add Constructor(DOMString transformList). #

Patch Set 4 : [GeometryInferface] add Constructor(DOMString transformList). #

Total comments: 2

Patch Set 5 : [GeometryInferface] add Constructor(DOMString transformList). #

Patch Set 6 : update test message. #

Total comments: 6

Patch Set 7 : [GeometryInferface] add Constructor(DOMString transformList). #

Total comments: 2

Patch Set 8 : [GeometryInferface] add Constructor(DOMString transformList). #

Total comments: 4

Patch Set 9 : [GeometryInferface] add Constructor(DOMString transformList). #

Total comments: 6

Patch Set 10 : [GeometryInferface] add Constructor(DOMString transformList). #

Messages

Total messages: 46 (31 generated)
Hwanseung Lee
@dominicc, zino PTAL, thank you.
4 years ago (2016-11-27 09:09:04 UTC) #11
zino
https://codereview.chromium.org/2516973002/diff/60001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp File third_party/WebKit/Source/core/dom/DOMMatrix.cpp (right): https://codereview.chromium.org/2516973002/diff/60001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp#newcode257 third_party/WebKit/Source/core/dom/DOMMatrix.cpp:257: return static_cast<DOMMatrix*>( This casting isn't a right way. I ...
4 years ago (2016-11-29 01:09:24 UTC) #12
Hwanseung Lee
i fixed it. https://codereview.chromium.org/2516973002/diff/60001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp File third_party/WebKit/Source/core/dom/DOMMatrix.cpp (right): https://codereview.chromium.org/2516973002/diff/60001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp#newcode257 third_party/WebKit/Source/core/dom/DOMMatrix.cpp:257: return static_cast<DOMMatrix*>( On 2016/11/29 01:09:24, zino ...
4 years ago (2016-11-29 14:31:25 UTC) #15
zino
https://codereview.chromium.org/2516973002/diff/100001/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp File third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp (right): https://codereview.chromium.org/2516973002/diff/100001/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp#newcode101 third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp:101: return new DOMMatrixReadOnly(transformList, exceptionState); DOMMatrixReadOnly* matrix = new DOMMatrixReadOnly(TransformationMatrix::create()); ...
4 years ago (2016-11-30 13:39:31 UTC) #20
Hwanseung Lee
@zino i fixed it. https://codereview.chromium.org/2516973002/diff/100001/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp File third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp (right): https://codereview.chromium.org/2516973002/diff/100001/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp#newcode101 third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp:101: return new DOMMatrixReadOnly(transformList, exceptionState); On ...
4 years ago (2016-11-30 14:00:31 UTC) #21
zino
lgtm with nit https://codereview.chromium.org/2516973002/diff/120001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp File third_party/WebKit/Source/core/dom/DOMMatrix.cpp (right): https://codereview.chromium.org/2516973002/diff/120001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp#newcode263 third_party/WebKit/Source/core/dom/DOMMatrix.cpp:263: DOMMatrixReadOnly::setMatrixValueFromString(inputString, exceptionState); nit: I think you ...
4 years ago (2016-11-30 14:41:28 UTC) #24
Hwanseung Lee
thank you. i fixed it. https://codereview.chromium.org/2516973002/diff/120001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp File third_party/WebKit/Source/core/dom/DOMMatrix.cpp (right): https://codereview.chromium.org/2516973002/diff/120001/third_party/WebKit/Source/core/dom/DOMMatrix.cpp#newcode263 third_party/WebKit/Source/core/dom/DOMMatrix.cpp:263: DOMMatrixReadOnly::setMatrixValueFromString(inputString, exceptionState); On 2016/11/30 ...
4 years ago (2016-11-30 14:46:18 UTC) #25
dominicc (has gone to gerrit)
https://codereview.chromium.org/2516973002/diff/140001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html (right): https://codereview.chromium.org/2516973002/diff/140001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html#newcode111 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html:111: assert_throws(new SyntaxError(), () => { new DOMMatrixReadOnly(1, 2, 3, ...
4 years ago (2016-12-05 08:03:45 UTC) #30
Hwanseung Lee
i fixed something which you comment. could you review again? https://codereview.chromium.org/2516973002/diff/140001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html (right): https://codereview.chromium.org/2516973002/diff/140001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html#newcode111 ...
4 years ago (2016-12-05 15:15:19 UTC) #33
dominicc (has gone to gerrit)
https://codereview.chromium.org/2516973002/diff/160001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html (right): https://codereview.chromium.org/2516973002/diff/160001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html#newcode120 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html:120: "Must have an absolute unit."); Let's make these descriptive ...
4 years ago (2016-12-06 08:44:24 UTC) #36
Hwanseung Lee
https://codereview.chromium.org/2516973002/diff/160001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html File third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html (right): https://codereview.chromium.org/2516973002/diff/160001/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html#newcode120 third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html:120: "Must have an absolute unit."); On 2016/12/06 08:44:24, dominicc ...
4 years ago (2016-12-07 13:56:59 UTC) #37
dominicc (has gone to gerrit)
lgtm
4 years ago (2016-12-13 07:47:16 UTC) #39
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/2516973002/180001
4 years ago (2016-12-13 07:47:40 UTC) #41
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-12-13 09:18:14 UTC) #44
commit-bot: I haz the power
4 years ago (2016-12-13 09:23:56 UTC) #46
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/59c27f138a1ef700d4adb552e8a9c0452d7a8d4e
Cr-Commit-Position: refs/heads/master@{#438107}

Powered by Google App Engine
This is Rietveld 408576698