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

Issue 2519333004: Don't use post multiplication on transforms with compatible pairs of operations (Closed)

Created:
4 years ago by alancutter (OOO until 2018)
Modified:
4 years ago
Reviewers:
jbroman
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, Eric Willigers, rjwright, shans
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't use matrix decomposation on transform list interpolations with compatible pairs of operations The existing code required transform lists to have identical pairs of operation types in order to do pairwise interpolation instead of matrix decomposition. The transform spec states that each pair must have the same name or be a derivation of the same primitive. https://drafts.csswg.org/css-transforms-1/#interpolation-of-transforms This permits pairs like scaleX and scaleY to be compatible while our existing code would reject them and fall back to decomposition interpolation. This difference in behaviour is usually only noticable when one side of the interpolation is non-invertable. This patch updates our code to match the spec and more closely match Firefox's behaviour. Firefox falls back to post multiplication whenever mismatched rotate functions are blended which does not match spec text. Filed Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1322189 BUG=619616 Committed: https://crrev.com/a5df6c6cf9b46d62121f92e5e4161058877c7051 Cr-Commit-Position: refs/heads/master@{#436845}

Patch Set 1 #

Patch Set 2 : Rewrite for primitive types #

Patch Set 3 : Rename #

Messages

Total messages: 17 (10 generated)
alancutter (OOO until 2018)
4 years ago (2016-11-23 02:31:59 UTC) #4
jbroman
Does this cover all cases? It would be nice to also see test cases for ...
4 years ago (2016-11-23 16:52:57 UTC) #5
alancutter (OOO until 2018)
On 2016/11/23 at 16:52:57, jbroman wrote: > Does this cover all cases? It would be ...
4 years ago (2016-12-06 01:02:50 UTC) #8
jbroman
lgtm, thanks
4 years ago (2016-12-06 15:18:29 UTC) #11
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/2519333004/40001
4 years ago (2016-12-06 22:55:24 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-07 02:42:06 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-07 02:45:47 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a5df6c6cf9b46d62121f92e5e4161058877c7051
Cr-Commit-Position: refs/heads/master@{#436845}

Powered by Google App Engine
This is Rietveld 408576698