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

Issue 2369833002: Introduce KeyframeEffectReadOnly interface (Closed)

Created:
4 years, 2 months ago by suzyh_UTC10 (ex-contributor)
Modified:
4 years, 2 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-w3ctests_chromium.org, chromium-reviews, Eric Willigers, rjwright, shans, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce KeyframeEffectReadOnly interface The Web Animations spec includes a KeyframeEffect interface which inherits from KeyframeEffectReadOnly which in turn inherits from AnimationEffectReadOnly. (http://w3c.github.io/web-animations/#the-keyframeeffect-interfaces). Blink currently does not implement KeyframeEffectReadOnly; KeyframeEffect inherits directly from AnimationEffectReadOnly. This patch adds the KeyframeEffectReadOnly interface and corresponding implementation. Since KeyframeEffectReadOnly objects are never actually used in the code, and we only need to provide a read-only view on a KeyframeEffect object, the KeyframeEffectReadOnly::create functions simply pass through to the KeyframeEffect::create functions. Note that these interfaces are only exposed behind the experimental-web-platform-features flag. Several expectations are correspondingly updated for the web-animations suite of the imported web platform tests. BUG=624639, 600248 Committed: https://crrev.com/3120c553f66737e082fe12cace7ca25743f1dfe8 Cr-Commit-Position: refs/heads/master@{#422009}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Update references to Priority, response to review #

Total comments: 4

Patch Set 3 : Move Priority back to KeyframeEffect #

Patch Set 4 : Move destructor #

Total comments: 1

Patch Set 5 : Use short form of copyright message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -308 lines) Patch
M third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/finish-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Document/getAnimations-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/KeyframeEffect/constructor-expected.txt View 1 chunk +123 lines, -209 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/KeyframeEffect/getComputedTiming-expected.txt View 1 1 chunk +0 lines, -39 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-expected.txt View 1 chunk +38 lines, -38 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffect.h View 1 2 3 chunks +2 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffect.cpp View 1 2 4 chunks +5 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffect.idl View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.idl View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (18 generated)
suzyh_UTC10 (ex-contributor)
Since we don't expose anything of the KeyframeEffect{,ReadOnly} interfaces except for the constructors, I've moved ...
4 years, 2 months ago (2016-09-26 06:32:06 UTC) #2
suzyh_UTC10 (ex-contributor)
On 2016/09/26 at 06:32:06, suzyh wrote: > Since we don't expose anything of the KeyframeEffect{,ReadOnly} ...
4 years, 2 months ago (2016-09-26 07:12:46 UTC) #5
alancutter (OOO until 2018)
https://codereview.chromium.org/2369833002/diff/1/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h File third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h (right): https://codereview.chromium.org/2369833002/diff/1/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h#newcode48 third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h:48: // http://w3c.github.io/web-animations/#keyframe-effect Should this be http://w3c.github.io/web-animations/#keyframeeffectreadonly? https://codereview.chromium.org/2369833002/diff/1/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.idl File third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.idl ...
4 years, 2 months ago (2016-09-26 07:43:33 UTC) #6
suzyh_UTC10 (ex-contributor)
https://codereview.chromium.org/2369833002/diff/1/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/KeyframeEffect/getComputedTiming-expected.txt File third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/KeyframeEffect/getComputedTiming-expected.txt (right): https://codereview.chromium.org/2369833002/diff/1/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/KeyframeEffect/getComputedTiming-expected.txt#newcode2 third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/KeyframeEffect/getComputedTiming-expected.txt:2: FAIL values of getComputedTiming() when a KeyframeEffectReadOnly is constructed ...
4 years, 2 months ago (2016-09-27 03:44:46 UTC) #9
alancutter (OOO until 2018)
lgtm after comment resolved. https://codereview.chromium.org/2369833002/diff/20001/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp File third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp (right): https://codereview.chromium.org/2369833002/diff/20001/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp#newcode75 third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp:75: } It's fine to have ...
4 years, 2 months ago (2016-09-27 05:09:05 UTC) #12
suzyh_UTC10 (ex-contributor)
+shans for core/ approval and sanity check that this is a reasonable way to implement ...
4 years, 2 months ago (2016-09-27 07:21:59 UTC) #17
suzyh_UTC10 (ex-contributor)
Wait, shans isn't an OWNER. -shans +dstockwell
4 years, 2 months ago (2016-09-27 07:22:49 UTC) #20
suzyh_UTC10 (ex-contributor)
Hmm, I don't think the last email went to Doug like it was intended to. ...
4 years, 2 months ago (2016-09-28 00:57:57 UTC) #22
esprehn
https://codereview.chromium.org/2369833002/diff/60001/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h File third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h (right): https://codereview.chromium.org/2369833002/diff/60001/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h#newcode2 third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h:2: * Copyright (C) 2016 Google Inc. All rights reserved. ...
4 years, 2 months ago (2016-09-28 04:53:21 UTC) #24
dstockwell
lgtm, but see esprehn's comment
4 years, 2 months ago (2016-09-29 04:02:08 UTC) #25
suzyh_UTC10 (ex-contributor)
On 2016/09/28 at 04:53:21, esprehn wrote: > https://codereview.chromium.org/2369833002/diff/60001/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h > File third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h (right): > > https://codereview.chromium.org/2369833002/diff/60001/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h#newcode2 ...
4 years, 2 months ago (2016-09-30 00:22:34 UTC) #26
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/2369833002/80001
4 years, 2 months ago (2016-09-30 00:23:08 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-30 01:52:45 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 01:57:51 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3120c553f66737e082fe12cace7ca25743f1dfe8
Cr-Commit-Position: refs/heads/master@{#422009}

Powered by Google App Engine
This is Rietveld 408576698