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

Issue 2398373002: Construct KeyframeEffectReadOnly objects (Closed)

Created:
4 years, 2 months ago by suzyh_UTC10 (ex-contributor)
Modified:
4 years, 1 month 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

Construct KeyframeEffectReadOnly objects This patch implements the last part of the fix for the bug identified in https://codereview.chromium.org/2389323003. The content of the KeyframeEffect::create functions is copied to KeyframeEffectReadOnly::create functions instead of the latter being a simple wrapper around the former. While this introduces some code duplication, there seems to be very little in the way of meaningful refactoring that can be done. The content of the functions is largely plumbing arguments from one place to another, and the ::create functions can fail (returning nullptr), so the work cannot be moved into constructors. BUG=624639 Committed: https://crrev.com/d7e233e169431f279af4c78940a0d92784e79ddf Cr-Commit-Position: refs/heads/master@{#431119}

Patch Set 1 #

Patch Set 2 : Add test animating with KeyframeEffectReadOnly #

Patch Set 3 : Extend test, replace one KE conversion with KERO #

Patch Set 4 : Rebase #

Patch Set 5 : Additional tests #

Patch Set 6 : Minor fixes: remove TODO, fix include #

Total comments: 3

Patch Set 7 : Test tweaks in response to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -69 lines) Patch
A third_party/WebKit/LayoutTests/animations/KeyframeEffectReadOnly-animation.html View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/animations/api-readonly-object-types-expected.txt View 1 chunk +0 lines, -5 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/animation/animation-KeyframeEffectReadOnly-crash.html View 1 2 3 4 5 6 1 chunk +57 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/animation/animation-KeyframeEffectReadOnly-crash-expected.txt View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/threaded/animations/KeyframeEffectReadOnly-composited-animation.html View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/Animation.cpp View 1 2 3 4 8 chunks +20 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationEffectReadOnly.cpp View 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/ElementAnimation.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/ElementAnimations.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffect.cpp View 3 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp View 3 chunks +44 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp View 1 2 3 4 6 chunks +16 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp View 1 2 3 4 9 chunks +14 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 34 (18 generated)
suzyh_UTC10 (ex-contributor)
4 years, 2 months ago (2016-10-07 01:27:37 UTC) #2
alancutter (OOO until 2018)
Do we have tests for animations using KeyframeEffectReadOnly effects?
4 years, 2 months ago (2016-10-07 03:30:12 UTC) #3
suzyh_UTC10 (ex-contributor)
On 2016/10/07 at 03:30:12, alancutter wrote: > Do we have tests for animations using KeyframeEffectReadOnly ...
4 years, 2 months ago (2016-10-09 23:06:53 UTC) #4
alancutter (OOO until 2018)
On 2016/10/09 at 23:06:53, suzyh wrote: > On 2016/10/07 at 03:30:12, alancutter wrote: > > ...
4 years, 2 months ago (2016-10-10 00:19:05 UTC) #5
suzyh_UTC10 (ex-contributor)
On 2016/10/10 at 00:19:05, alancutter wrote: > On 2016/10/09 at 23:06:53, suzyh wrote: > > ...
4 years, 2 months ago (2016-10-10 04:19:23 UTC) #6
alancutter (OOO until 2018)
On 2016/10/10 at 04:19:23, suzyh wrote: > On 2016/10/10 at 00:19:05, alancutter wrote: > > ...
4 years, 2 months ago (2016-10-10 04:21:31 UTC) #9
alancutter (OOO until 2018)
On 2016/10/10 at 04:21:31, alancutter wrote: > On 2016/10/10 at 04:19:23, suzyh wrote: > > ...
4 years, 2 months ago (2016-10-10 04:22:35 UTC) #10
suzyh_UTC10 (ex-contributor)
I've now added a couple more tests: - animations: Tests that using a KERO for ...
4 years, 1 month ago (2016-10-27 00:58:56 UTC) #17
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2398373002/diff/100001/third_party/WebKit/LayoutTests/inspector/animation/animation-KeyframeEffectReadOnly.html File third_party/WebKit/LayoutTests/inspector/animation/animation-KeyframeEffectReadOnly.html (right): https://codereview.chromium.org/2398373002/diff/100001/third_party/WebKit/LayoutTests/inspector/animation/animation-KeyframeEffectReadOnly.html#newcode50 third_party/WebKit/LayoutTests/inspector/animation/animation-KeyframeEffectReadOnly.html:50: KeyframeEffectReadOnly. This description should be more clear that ...
4 years, 1 month ago (2016-10-28 03:38:32 UTC) #18
suzyh_UTC10 (ex-contributor)
+pfeldman for inspector On 2016/10/28 at 03:38:32, alancutter wrote: > lgtm > > https://codereview.chromium.org/2398373002/diff/100001/third_party/WebKit/LayoutTests/inspector/animation/animation-KeyframeEffectReadOnly.html > ...
4 years, 1 month ago (2016-10-30 22:57:20 UTC) #20
suzyh_UTC10 (ex-contributor)
pfeldman: Ping? Feel free to redirect to another reviewer if appropriate. Thanks!
4 years, 1 month ago (2016-11-02 01:35:20 UTC) #25
suzyh_UTC10 (ex-contributor)
-pfeldman, +dgozman dgozman: Do you have time to review this for core/inspector and the inspector ...
4 years, 1 month ago (2016-11-09 04:56:55 UTC) #27
dgozman
inspector lgtm
4 years, 1 month ago (2016-11-09 18:14:17 UTC) #28
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/2398373002/120001
4 years, 1 month ago (2016-11-09 23:03:28 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-10 01:00:49 UTC) #32
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 01:06:24 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d7e233e169431f279af4c78940a0d92784e79ddf
Cr-Commit-Position: refs/heads/master@{#431119}

Powered by Google App Engine
This is Rietveld 408576698