RESOLVED FIXED 183371
[Web Animations] Add a new CSSAnimation subclass of WebAnimation
https://bugs.webkit.org/show_bug.cgi?id=183371
Summary [Web Animations] Add a new CSSAnimation subclass of WebAnimation
Antoine Quint
Reported 2018-03-06 09:00:16 PST
As we implement CSS Animations over the Web Animations engine, we’ll need a way to represent an animation created using CSS Animations. To do so, we’ll add a new CSSAnimation subclass of WebAnimation. This Radar covers the basic task of adding the new class to WebCore.
Attachments
Patch (19.23 KB, patch)
2018-03-06 09:03 PST, Antoine Quint
no flags
Patch (20.15 KB, patch)
2018-03-06 09:24 PST, Antoine Quint
dino: review+
Antoine Quint
Comment 1 2018-03-06 09:00:25 PST
Antoine Quint
Comment 2 2018-03-06 09:03:06 PST
Antoine Quint
Comment 3 2018-03-06 09:24:41 PST
EWS Watchlist
Comment 4 2018-03-06 09:27:55 PST
Attachment 335104 [details] did not pass style-queue: ERROR: Source/WebCore/ChangeLog:21: Need whitespace between colon and description [changelog/filechangedescriptionwhitespace] [5] Total errors found: 1 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dean Jackson
Comment 5 2018-03-06 09:39:15 PST
Comment on attachment 335104 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=335104&action=review > Source/WebCore/animation/CSSAnimation.cpp:40 > + auto& document = target.document(); > + > + auto result = adoptRef(*new CSSAnimation(document)); > + > + return result; why not just return adoptRef(*new CSSAnimation(target.document()); > Source/WebCore/animation/CSSAnimation.h:42 > + const String& animationName() const { return m_animationName; } You have no way to set the animation name yet.
Antoine Quint
Comment 6 2018-03-06 10:02:54 PST
(In reply to Dean Jackson from comment #5) > Comment on attachment 335104 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=335104&action=review > > > Source/WebCore/animation/CSSAnimation.cpp:40 > > + auto& document = target.document(); > > + > > + auto result = adoptRef(*new CSSAnimation(document)); > > + > > + return result; > > why not just return adoptRef(*new CSSAnimation(target.document()); > > > Source/WebCore/animation/CSSAnimation.h:42 > > + const String& animationName() const { return m_animationName; } > > You have no way to set the animation name yet. Indeed, this is just setting the stage for future patches where we'll be adding more code to CSSAnimation::create().
Antoine Quint
Comment 7 2018-03-06 10:34:30 PST
Note You need to log in before you can comment on or make changes to this bug.