Bug 183556 - [Web Animations] Create keyframes for declarative animations based on backing Animation and RenderStyle objects
Summary: [Web Animations] Create keyframes for declarative animations based on backing...
Status: RESOLVED DUPLICATE of bug 183504
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-11 19:43 PDT by Antoine Quint
Modified: 2018-03-12 06:03 PDT (History)
2 users (show)

See Also:


Attachments
Patch (18.29 KB, patch)
2018-03-11 19:48 PDT, Antoine Quint
dino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2018-03-11 19:43:17 PDT
[Web Animations] Create keyframes for declarative animations based on backing Animation and RenderStyle objects
Comment 1 Antoine Quint 2018-03-11 19:48:17 PDT
Created attachment 335567 [details]
Patch
Comment 2 EWS Watchlist 2018-03-11 19:49:51 PDT
Attachment 335567 [details] did not pass style-queue:


ERROR: Source/WebCore/animation/KeyframeEffectReadOnly.cpp:512:  Should have only a single space after a punctuation in a comment.  [whitespace/comments] [5]
ERROR: Source/WebCore/animation/KeyframeEffectReadOnly.cpp:550:  Should have only a single space after a punctuation in a comment.  [whitespace/comments] [5]
Total errors found: 2 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Dean Jackson 2018-03-12 03:23:37 PDT
Comment on attachment 335567 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=335567&action=review

> Source/WebCore/ChangeLog:9
> +        animations() and transitions() functions during style resolution. We add new methods on KeyframeEffectReadOnly to create blending keyframes, which

is blending keyframes a spec term? i'm not sure what it is supposed to mean

> Source/WebCore/ChangeLog:21
> +        looking up the keyframes date obtained from the @keyframes rule with this backing animation's name.

data

> Source/WebCore/animation/KeyframeEffectReadOnly.cpp:837
> +    return !m_blendingKeyframes.isEmpty();

return hasBlendingKeyframes()
Comment 4 Antoine Quint 2018-03-12 03:30:47 PDT
(In reply to Dean Jackson from comment #3)
> Comment on attachment 335567 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=335567&action=review
> 
> > Source/WebCore/ChangeLog:9
> > +        animations() and transitions() functions during style resolution. We add new methods on KeyframeEffectReadOnly to create blending keyframes, which
> 
> is blending keyframes a spec term? i'm not sure what it is supposed to mean

It's not part of the spec. It's a term we've been using in our Web Animations implementation to distinguish between the keyframes parsed from the JS API, which are Vector<ParsedKeyframe> and contain raw unparsed values that can be roundtripped through getKeyframes() calls, and the keyframes used for blending, using CSSPropertyAnimation::blendProperties(), which are KeyframeList and pre-date the Web Animations code.

> > Source/WebCore/ChangeLog:21
> > +        looking up the keyframes date obtained from the @keyframes rule with this backing animation's name.
> 
> data

Will fix.

> > Source/WebCore/animation/KeyframeEffectReadOnly.cpp:837
> > +    return !m_blendingKeyframes.isEmpty();
> 
> return hasBlendingKeyframes()

That is much nicer, yes!
Comment 5 Antoine Quint 2018-03-12 06:03:19 PDT

*** This bug has been marked as a duplicate of bug 183504 ***