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

Issue 2047293002: Code cleanup: Replace Element with Document in element.animate() (Closed)

Created:
4 years, 6 months ago by alancutter (OOO until 2018)
Modified:
3 years, 8 months ago
Reviewers:
Eric Willigers
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, Eric Willigers, rjwright, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@_killForceConversionsToAnimatableValues
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Code cleanup: Replace Element with Document in element.animate() Since compositor keyframes are no longer snapshot during element.animate() we don't have a dependency on the target Element any more and can instead use the Document. This will make it easier to create SharedKeyframes in the future that are decoupled from specific elements.

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 4

Patch Set 3 : Fix unit test crash. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -199 lines) Patch
M third_party/WebKit/Source/core/animation/AnimationEffectTiming.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationEffectTiming.cpp View 2 chunks +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationEffectTiming.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationInputHelpers.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp View 1 3 chunks +22 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInput.h View 1 chunk +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInput.cpp View 8 chunks +21 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInputTest.cpp View 1 6 chunks +5 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/animation/ElementAnimation.h View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffect.cpp View 1 1 chunk +9 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffectTest.cpp View 1 2 10 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/animation/StringKeyframe.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/StringKeyframe.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/TimingInput.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/TimingInput.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/TimingInputTest.cpp View 1 8 chunks +80 lines, -79 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047293002/1
4 years, 6 months ago (2016-06-08 11:12:17 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/182665)
4 years, 6 months ago (2016-06-08 11:56:06 UTC) #4
alancutter (OOO until 2018)
4 years, 6 months ago (2016-06-09 00:33:40 UTC) #6
Eric Willigers
lgtm
4 years, 6 months ago (2016-06-09 14:48:35 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2047293002/20001
4 years, 5 months ago (2016-07-06 07:32:53 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/257620)
4 years, 5 months ago (2016-07-06 08:51:28 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2047293002/40001
4 years, 5 months ago (2016-07-07 03:34:56 UTC) #17
alancutter (OOO until 2018)
Will wait for suzyh's review before committing.
4 years, 5 months ago (2016-07-07 03:34:58 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/251217)
4 years, 5 months ago (2016-07-07 05:47:08 UTC) #20
suzyh_UTC10 (ex-contributor)
I'm more or less happy with this, but just have a concern about the ExecutionContext ...
4 years, 5 months ago (2016-07-07 05:59:44 UTC) #21
alancutter (OOO until 2018)
Thanks for the thorough review, I presume ExecutionContext is always going to be a Document ...
4 years, 5 months ago (2016-07-07 06:33:40 UTC) #22
haraken
On 2016/07/07 06:33:40, alancutter wrote: > Thanks for the thorough review, I presume ExecutionContext is ...
4 years, 5 months ago (2016-07-07 09:00:03 UTC) #23
suzyh_UTC10 (ex-contributor)
On 2016/07/07 at 09:00:03, haraken wrote: > On 2016/07/07 06:33:40, alancutter wrote: > > Thanks ...
4 years, 5 months ago (2016-07-08 00:48:55 UTC) #24
alancutter (OOO until 2018)
On 2016/07/08 at 00:48:55, suzyh wrote: > Where is it controlled that these functions are ...
4 years, 5 months ago (2016-07-08 01:14:20 UTC) #25
suzyh_UTC10 (ex-contributor)
4 years, 5 months ago (2016-07-22 01:04:09 UTC) #26
Has there been any update on this, with respect to the isSVGElement checks?

Also, it's just occurred to me that several of the uses of Document here are
only for UseCounters, which can operate on ExecutionContext directly. We should
consider switching to ExecutionContext for this, taking haraken's advice.

Powered by Google App Engine
This is Rietveld 408576698