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

Issue 1648853002: Typed CSS OM: implement TransformComponent::asMatrix (Closed)

Created:
4 years, 10 months ago by tridgell
Modified:
4 years, 10 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, lawton, rjwright, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@asMatrixTransformMethod
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Typed CSS OM: implement TransformComponent::asMatrix All methods used for generating the underlying matrix in asMatrix are in MatrixTransformComponent.cpp Constructs each MatrixTransformComponent for use in asMatrix methods manually, rather than using inbuilt methods to avoid unnecessary matrix multiplication. (With the exception of rotate and rotate3d, as they require far more complex calculations.) Note: asMatrix for a MatrixTransformComponent returns a clone. BUG=545318 Committed: https://crrev.com/2a40cf093c3a596c0658e12cd24a32086817f057 Cr-Commit-Position: refs/heads/master@{#374770}

Patch Set 1 #

Patch Set 2 : Add asMatrix to global interface listing #

Patch Set 3 : Remove erroneous method listing #

Patch Set 4 : #

Patch Set 5 : Add Perspective::asMatrix - unimplemented #

Total comments: 10

Patch Set 6 : Add dependency on renaming CL and use OwnPtr for TransformationMatrix in methods #

Patch Set 7 : Use TransformationMatrix::create #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -22 lines) Patch
M third_party/WebKit/LayoutTests/typedcssom/matrixTransformComponent.html View 1 2 3 4 5 2 chunks +18 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/typedcssom/rotationTransformComponent.html View 1 2 3 4 5 2 chunks +40 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/typedcssom/scaleTransformComponent.html View 1 2 3 4 5 2 chunks +19 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/typedcssom/skewTransformComponent.html View 1 2 3 4 5 2 chunks +24 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.h View 1 2 3 4 5 6 2 chunks +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp View 1 2 3 4 5 6 2 chunks +69 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/PerspectiveTransformComponent.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h View 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/ScaleTransformComponent.h View 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/SkewTransformComponent.h View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/TransformComponent.h View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/TransformComponent.idl View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (8 generated)
tridgell
4 years, 10 months ago (2016-02-04 04:42:51 UTC) #2
meade_UTC10
lgtm Looks pretty good to me, adding Eric to for more experienced eye https://codereview.chromium.org/1648853002/diff/80001/third_party/WebKit/LayoutTests/typedcssom/matrixTransformComponent.html File ...
4 years, 10 months ago (2016-02-04 06:50:12 UTC) #4
Eric Willigers
We can use smart pointers when allocating TransformationMatrix. https://codereview.chromium.org/1648853002/diff/80001/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp File third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp (right): https://codereview.chromium.org/1648853002/diff/80001/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp#newcode44 third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp:44: TransformationMatrix* ...
4 years, 10 months ago (2016-02-05 01:16:34 UTC) #5
tridgell
https://codereview.chromium.org/1648853002/diff/80001/third_party/WebKit/LayoutTests/typedcssom/matrixTransformComponent.html File third_party/WebKit/LayoutTests/typedcssom/matrixTransformComponent.html (right): https://codereview.chromium.org/1648853002/diff/80001/third_party/WebKit/LayoutTests/typedcssom/matrixTransformComponent.html#newcode78 third_party/WebKit/LayoutTests/typedcssom/matrixTransformComponent.html:78: }, "Test that asMatrix has all the same properties ...
4 years, 10 months ago (2016-02-08 01:00:14 UTC) #6
Eric Willigers
lgtm
4 years, 10 months ago (2016-02-08 03:13:15 UTC) #7
Timothy Loh
ok lgtm
4 years, 10 months ago (2016-02-10 06:22:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1648853002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1648853002/120001
4 years, 10 months ago (2016-02-10 23:04:06 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-10 23:14:52 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:32:15 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2a40cf093c3a596c0658e12cd24a32086817f057
Cr-Commit-Position: refs/heads/master@{#374770}

Powered by Google App Engine
This is Rietveld 408576698