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

Issue 2317903003: Add CSS property priority for CSS animation affecting properties (Closed)

Created:
4 years, 3 months ago by alancutter (OOO until 2018)
Modified:
4 years, 1 month ago
Reviewers:
Timothy Loh
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add CSS property priority for CSS animation affecting properties This change adds a separate priority for CSS properties that affect running animations. This is in preparation for enabling animation of custom properties. There is no meaningful change in behaviour made by this patch. The reordering of CSSPropertyIDs has revealed a bug in CSS property/SVG presentation attribute animation collision where the "winner" is based on hash iteration ordering rather than meaningful rules. This should not impact users in any significant way as targeting SVG properties in Web Animations is still behind the experimental flag. The call to applyMatchedProperties<HighPriorityProperty>() in styleForPage() has been deliberately left alone. Animation properties are not used by callers of styleForPage() and animation effects were not applied previously. BUG=644148 Committed: https://crrev.com/6d47d44ba4c0ba026223adb94d7f236fbc5efa22 Cr-Commit-Position: refs/heads/master@{#431706}

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Rebased #

Total comments: 4

Patch Set 4 : Review changes #

Patch Set 5 : Don't bother applying animation properties in styleForPage #

Patch Set 6 : Rebase onto apply pass optimisation #

Patch Set 7 : Rebase onto latest optimisation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -19 lines) Patch
D third_party/WebKit/LayoutTests/animations/css-animation-overrides-svg-presentation-attribute-animation-expected.txt View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 2 3 4 5 3 chunks +14 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h View 1 2 3 4 5 6 3 chunks +29 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 6 3 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
alancutter (OOO until 2018)
4 years, 1 month ago (2016-10-21 05:18:18 UTC) #4
Timothy Loh
https://codereview.chromium.org/2317903003/diff/40001/third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h File third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h (right): https://codereview.chromium.org/2317903003/diff/40001/third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h#newcode66 third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h:66: CSSPropertyTransitionProperty == CSSPropertyTransitionTimingFunction - 1, This assert seems pretty ...
4 years, 1 month ago (2016-10-21 05:42:55 UTC) #6
alancutter (OOO until 2018)
https://codereview.chromium.org/2317903003/diff/40001/third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h File third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h (right): https://codereview.chromium.org/2317903003/diff/40001/third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h#newcode66 third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h:66: CSSPropertyTransitionProperty == CSSPropertyTransitionTimingFunction - 1, On 2016/10/21 at 05:42:55, ...
4 years, 1 month ago (2016-10-24 04:08:27 UTC) #10
Timothy Loh
lgtm
4 years, 1 month ago (2016-10-24 05:33:05 UTC) #15
alancutter (OOO until 2018)
Not lgtm, this causes a 2-3% regression in the update_style metric. http://storage.googleapis.com/chromium-telemetry/html-results/results-2016-10-24_01-05-51
4 years, 1 month ago (2016-10-25 03:40:49 UTC) #16
alancutter (OOO until 2018)
On 2016/10/25 at 03:40:49, alancutter wrote: > Not lgtm, this causes a 2-3% regression in ...
4 years, 1 month ago (2016-11-04 04:33:18 UTC) #17
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/2317903003/120001
4 years, 1 month ago (2016-11-12 00:26:35 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-12 00:32:02 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 00:36:22 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6d47d44ba4c0ba026223adb94d7f236fbc5efa22
Cr-Commit-Position: refs/heads/master@{#431706}

Powered by Google App Engine
This is Rietveld 408576698