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

Issue 1318273003: Prevent will-change:transform from changing the computed value of transform (Closed)

Created:
5 years, 3 months ago by ajuma
Modified:
5 years, 3 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Prevent will-change:transform from changing the computed value of transform Elements styled with "will-change: transform" are supposed to behave like transformed elements for the purposes of containing block creation, even if their transform value is "none". The idea is that setting a transform on such elements should be fast, involving only moving a composited layer rather than changing layout. Currently, this is implemented by changing the computed value of transform from 'none' to the identity transform. However, changing the computed value of transform causes animations on such elements to interpolate incorrectly, since interpolating from 'none' is not equivalent to interpolating from the identity (in particular, interpolating from the latter can lead to matrix decomposition rather than numerical interpolation, producing visually different results). This CL changes makes "will-change: transform" no longer change the computed value of transform. Instead, this CL makes ComputedStyle::hasTransformRelatedProperty return true for elements with "will-change: transform". BUG=525886 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201557

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -12 lines) Patch
A LayoutTests/compositing/will-change/neutral-keyframe-not-decomposed.html View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/compositing/will-change/neutral-keyframe-not-decomposed-expected.html View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleAdjuster.cpp View 1 2 chunks +1 line, -9 lines 0 comments Download
M Source/core/style/ComputedStyle.h View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M Source/core/style/ComputedStyle.cpp View 1 2 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
alancutter (OOO until 2018)
lgtm, thanks for the fix! https://codereview.chromium.org/1318273003/diff/1/Source/core/style/ComputedStyle.cpp File Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/1318273003/diff/1/Source/core/style/ComputedStyle.cpp#newcode898 Source/core/style/ComputedStyle.cpp:898: for (size_t i = ...
5 years, 3 months ago (2015-08-29 06:10:04 UTC) #2
ajuma
+timloh for OWNERS https://codereview.chromium.org/1318273003/diff/1/Source/core/style/ComputedStyle.cpp File Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/1318273003/diff/1/Source/core/style/ComputedStyle.cpp#newcode898 Source/core/style/ComputedStyle.cpp:898: for (size_t i = 0; i ...
5 years, 3 months ago (2015-08-31 16:43:57 UTC) #5
Timothy Loh
On 2015/08/31 16:43:57, ajuma wrote: > +timloh for OWNERS > > https://codereview.chromium.org/1318273003/diff/1/Source/core/style/ComputedStyle.cpp > File Source/core/style/ComputedStyle.cpp ...
5 years, 3 months ago (2015-09-01 00:45:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318273003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318273003/60001
5 years, 3 months ago (2015-09-01 13:04:08 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-09-01 14:38:58 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201557

Powered by Google App Engine
This is Rietveld 408576698