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

Issue 1196163003: Fix animations not starting on detached elements (Closed)

Created:
5 years, 6 months ago by alancutter (OOO until 2018)
Modified:
5 years, 6 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, Eric Willigers, rjwright
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix animations not starting on detached elements An earlier fix for composited animations disabled animations from starting on elements that aren't attached to a live DOM. This patch fixes the behavioural regression. This also avoids starting animations on the compositor for detached elements that depend on style e.g. {transform: 'translateX(10em)'}. Instead these animations will run on the main thread. BUG=502145 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197624

Patch Set 1 #

Patch Set 2 : Test tweaks #

Total comments: 4

Patch Set 3 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -71 lines) Patch
D LayoutTests/animations/composited-animation-style-update.html View 1 2 1 chunk +0 lines, -31 lines 0 comments Download
D LayoutTests/animations/composited-animation-style-update-expected.html View 1 2 1 chunk +0 lines, -12 lines 0 comments Download
A + LayoutTests/animations/insert-composited-animation.html View 1 chunk +6 lines, -11 lines 0 comments Download
A + LayoutTests/animations/insert-composited-animation-expected.html View 1 1 chunk +1 line, -2 lines 0 comments Download
A + LayoutTests/animations/insert-style-dependent-animation.html View 1 2 chunks +4 lines, -8 lines 0 comments Download
A + LayoutTests/animations/insert-style-dependent-animation-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/virtual/threaded/animations/composited-animation-style-update.html View 1 2 1 chunk +12 lines, -2 lines 0 comments Download
A + LayoutTests/virtual/threaded/animations/composited-animation-style-update-expected.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/animation/EffectInput.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/animation/StringKeyframe.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/Internals.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (4 generated)
alancutter (OOO until 2018)
5 years, 6 months ago (2015-06-22 07:08:25 UTC) #2
shans
https://codereview.chromium.org/1196163003/diff/20001/LayoutTests/animations/insert-composited-animation.html File LayoutTests/animations/insert-composited-animation.html (right): https://codereview.chromium.org/1196163003/diff/20001/LayoutTests/animations/insert-composited-animation.html#newcode11 LayoutTests/animations/insert-composited-animation.html:11: transform: translate(50px, 50px); Need a test to ensure connected ...
5 years, 6 months ago (2015-06-22 11:51:39 UTC) #3
esprehn
Can we just change the spec? Running a style animation on a detached element doesn't ...
5 years, 6 months ago (2015-06-23 01:07:28 UTC) #4
shans
On 2015/06/23 01:07:28, esprehn wrote: > Can we just change the spec? Running a style ...
5 years, 6 months ago (2015-06-23 01:14:20 UTC) #5
alancutter (OOO until 2018)
https://codereview.chromium.org/1196163003/diff/20001/LayoutTests/animations/insert-composited-animation.html File LayoutTests/animations/insert-composited-animation.html (right): https://codereview.chromium.org/1196163003/diff/20001/LayoutTests/animations/insert-composited-animation.html#newcode11 LayoutTests/animations/insert-composited-animation.html:11: transform: translate(50px, 50px); On 2015/06/22 at 11:51:39, shans wrote: ...
5 years, 6 months ago (2015-06-23 03:47:04 UTC) #6
shans
lgtm
5 years, 6 months ago (2015-06-23 03:56:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1196163003/40001
5 years, 6 months ago (2015-06-23 03:57:02 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/36077)
5 years, 6 months ago (2015-06-23 04:03:16 UTC) #11
alancutter (OOO until 2018)
On 2015/06/23 at 04:03:16, commit-bot wrote: > Try jobs failed on following builders: > blink_presubmit ...
5 years, 6 months ago (2015-06-23 04:08:49 UTC) #12
Timothy Loh
"Still need core/OWNERS lgtms for the Internals changes." -> stamp
5 years, 6 months ago (2015-06-23 04:14:18 UTC) #13
Timothy Loh
On 2015/06/23 04:14:18, Timothy Loh wrote: > "Still need core/OWNERS lgtms for the Internals changes." ...
5 years, 6 months ago (2015-06-23 04:14:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1196163003/40001
5 years, 6 months ago (2015-06-23 04:24:41 UTC) #16
commit-bot: I haz the power
5 years, 6 months ago (2015-06-23 04:35:41 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197624

Powered by Google App Engine
This is Rietveld 408576698