WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
224012
Move AnimationTimeline methods related to Styleable to Styleable
https://bugs.webkit.org/show_bug.cgi?id=224012
Summary
Move AnimationTimeline methods related to Styleable to Styleable
Antoine Quint
Reported
2021-03-31 12:38:15 PDT
A number of public methods on AnimationTimeline make no use of any AnimationTimeline instance variables and instead call into Styleable: void elementWasRemoved(const Styleable&); void willChangeRendererForStyleable(const Styleable&); void cancelDeclarativeAnimationsForStyleable(const Styleable&); void animationWasAddedToStyleable(WebAnimation&, const Styleable&); void animationWasRemovedFromStyleable(WebAnimation&, const Styleable&); void removeDeclarativeAnimationFromListsForOwningElement(WebAnimation&, const Styleable&); void updateCSSAnimationsForStyleable(const Styleable&, const RenderStyle* currentStyle, const RenderStyle& afterChangeStyle, const RenderStyle* parentElementStyle); void updateCSSTransitionsForStyleable(const Styleable&, const RenderStyle& currentStyle, const RenderStyle& newStyle); These should all be on Styleable.
Attachments
Patch
(75.20 KB, patch)
2021-03-31 12:43 PDT
,
Antoine Quint
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(75.23 KB, patch)
2021-03-31 12:55 PDT
,
Antoine Quint
dino
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Antoine Quint
Comment 1
2021-03-31 12:43:54 PDT
Created
attachment 424803
[details]
Patch
Antoine Quint
Comment 2
2021-03-31 12:55:05 PDT
Created
attachment 424807
[details]
Patch
Dean Jackson
Comment 3
2021-03-31 14:46:05 PDT
Comment on
attachment 424807
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=424807&action=review
> Source/WebCore/ChangeLog:21 > + These really belong on Styleable so we move them all over to that class with a new .cpp class > + for these non-trivial methods.
Stylable is a pretty generic name, but all these functions are related to animations. Maybe this should be called something like AnimatableStyleable?
Antoine Quint
Comment 4
2021-03-31 14:51:02 PDT
(In reply to Dean Jackson from
comment #3
)
> Comment on
attachment 424807
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=424807&action=review
> > > Source/WebCore/ChangeLog:21 > > + These really belong on Styleable so we move them all over to that class with a new .cpp class > > + for these non-trivial methods. > > Stylable is a pretty generic name, but all these functions are related to > animations. Maybe this should be called something like AnimatableStyleable?
A Styleable is a struct that is an Element/PseudoId pair. It's primarily used for animations, but not only.
Antoine Quint
Comment 5
2021-03-31 23:33:34 PDT
Committed
r275346
(
236017@main
): <
https://commits.webkit.org/236017@main
>
Radar WebKit Bug Importer
Comment 6
2021-03-31 23:34:13 PDT
<
rdar://problem/76090629
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug