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

Issue 2562643002: Avoid visually transitioning on length CSS properties when zoom changes (Closed)

Created:
4 years ago by alancutter (OOO until 2018)
Modified:
4 years ago
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

Avoid visually transitioning on length CSS properties when zoom changes This change alters transition animation handling of length properties that happen to be stored as non-length numeric fields in ComputedStyle. Instead of treating them as AnimatableDoubles this patch treats them as AnimatableLengths which can deal with changes in page zoom correctly. Transitions may still start due to floating point & integer truncation approximations but the visual effects of the transitions will be negligible. BUG=267316 Committed: https://crrev.com/0ef90d0b121f4da99b02804a4bc0f774a8254655 Cr-Commit-Position: refs/heads/master@{#438740}

Patch Set 1 #

Patch Set 2 : lint #

Total comments: 10

Patch Set 3 : Rebased #

Total comments: 2

Patch Set 4 : Use setup() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -41 lines) Patch
A third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 2 12 chunks +26 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 2 15 chunks +36 lines, -25 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 30 (18 generated)
alancutter (OOO until 2018)
4 years ago (2016-12-12 00:28:59 UTC) #4
suzyh_UTC10 (ex-contributor)
In principle I'm happy with this change. I have several comments around making the code ...
4 years ago (2016-12-12 04:30:13 UTC) #9
alancutter (OOO until 2018)
https://codereview.chromium.org/2562643002/diff/20001/third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html File third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html (right): https://codereview.chromium.org/2562643002/diff/20001/third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html#newcode14 third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html:14: var lengthProperties = [ On 2016/12/12 at 04:30:13, suzyh ...
4 years ago (2016-12-13 02:36:34 UTC) #10
suzyh_UTC10 (ex-contributor)
lgtm with one minor comment. You'll still need approval from one of the style folks ...
4 years ago (2016-12-14 05:53:30 UTC) #11
alancutter (OOO until 2018)
https://codereview.chromium.org/2562643002/diff/40001/third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html File third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html (right): https://codereview.chromium.org/2562643002/diff/40001/third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html#newcode70 third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html:70: // The test setup is wrapped in a test() ...
4 years ago (2016-12-14 05:59:28 UTC) #13
alancutter (OOO until 2018)
+timloh for core/css.
4 years ago (2016-12-14 06:19:44 UTC) #16
Timothy Loh
On 2016/12/14 06:19:44, alancutter wrote: > +timloh for core/css. Won't this end up transitioning between ...
4 years ago (2016-12-14 23:30:45 UTC) #19
alancutter (OOO until 2018)
On 2016/12/14 at 23:30:45, timloh wrote: > On 2016/12/14 06:19:44, alancutter wrote: > > +timloh ...
4 years ago (2016-12-15 00:26:06 UTC) #21
Timothy Loh
lgtm
4 years ago (2016-12-15 04:15:48 UTC) #22
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/2562643002/60001
4 years ago (2016-12-15 04:25:30 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-15 04:33:41 UTC) #28
commit-bot: I haz the power
4 years ago (2016-12-15 04:35:25 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0ef90d0b121f4da99b02804a4bc0f774a8254655
Cr-Commit-Position: refs/heads/master@{#438740}

Powered by Google App Engine
This is Rietveld 408576698