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

Issue 2361733004: Adding @keyframes rules only affects TreeScope plus host. (Closed)

Created:
4 years, 3 months ago by rune
Modified:
4 years, 2 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, Eric Willigers, rjwright, rwlbuis, shans, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding @keyframes rules only affects TreeScope plus host. @keyframes rules may apply to animations in the same TreeScope as the rule and the host element if the TreeScope is a shadow tree. Instead of invalidating all keyframe animations or recalculating every element in the document, limit such changes to the relevant TreeScopes. Currently, this doesn't have an effect since analyzed style update only happens in the document TreeScope, but that will change with RuleSet invalidation for crbug.com/567021 R=alancutter@chromium.org,suzyh@chromium.org BUG=567021 Committed: https://crrev.com/5592758d33ac5041761a5aeab86258c2dcea39c5 Cr-Commit-Position: refs/heads/master@{#421781}

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 2

Patch Set 3 : Rebased #

Patch Set 4 : Moved scope check to CSSAnimations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -28 lines) Patch
A third_party/WebKit/LayoutTests/animations/add-keyframes-in-shadow-recalc.html View 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/Animation.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/Animation.cpp View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationTimeline.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationTimeline.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp View 1 2 3 2 chunks +14 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp View 3 chunks +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngine.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngine.cpp View 1 2 2 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
rune
ptal
4 years, 3 months ago (2016-09-22 22:52:01 UTC) #7
suzyh_UTC10 (ex-contributor)
I don't have a good understanding of the context for this change so I'll defer ...
4 years, 3 months ago (2016-09-22 23:55:48 UTC) #8
alancutter (OOO until 2018)
core/animation lgtm with nit. https://codereview.chromium.org/2361733004/diff/20001/third_party/WebKit/Source/core/animation/Animation.cpp File third_party/WebKit/Source/core/animation/Animation.cpp (right): https://codereview.chromium.org/2361733004/diff/20001/third_party/WebKit/Source/core/animation/Animation.cpp#newcode1101 third_party/WebKit/Source/core/animation/Animation.cpp:1101: } Nit: Move this static ...
4 years, 2 months ago (2016-09-27 06:49:50 UTC) #11
rune
Doh. Forgot to publish. https://codereview.chromium.org/2361733004/diff/20001/third_party/WebKit/Source/core/animation/Animation.cpp File third_party/WebKit/Source/core/animation/Animation.cpp (right): https://codereview.chromium.org/2361733004/diff/20001/third_party/WebKit/Source/core/animation/Animation.cpp#newcode1101 third_party/WebKit/Source/core/animation/Animation.cpp:1101: } On 2016/09/27 at 06:49:50, ...
4 years, 2 months ago (2016-09-28 21:35:57 UTC) #13
rune
timloh@: could you take a look at the non-animation/ changes? It's basically about moving the ...
4 years, 2 months ago (2016-09-28 21:50:53 UTC) #15
Timothy Loh
On 2016/09/28 21:50:53, rune wrote: > timloh@: could you take a look at the non-animation/ ...
4 years, 2 months ago (2016-09-29 04:25:46 UTC) #16
alancutter (OOO until 2018)
On 2016/09/28 at 21:35:57, rune wrote: > Doh. Forgot to publish. > > https://codereview.chromium.org/2361733004/diff/20001/third_party/WebKit/Source/core/animation/Animation.cpp > ...
4 years, 2 months ago (2016-09-29 06:22:12 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/2361733004/60001
4 years, 2 months ago (2016-09-29 07:19:30 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-29 08:48:45 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 08:50:44 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5592758d33ac5041761a5aeab86258c2dcea39c5
Cr-Commit-Position: refs/heads/master@{#421781}

Powered by Google App Engine
This is Rietveld 408576698