Summary: | [Web Animations] KeyframeEffect should ensure its target remains alive | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Antoine Quint <graouts> | ||||
Component: | Animations | Assignee: | Antoine Quint <graouts> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | darin, dino, graouts, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Antoine Quint
2020-04-25 05:17:13 PDT
Created attachment 397557 [details]
Patch
Comment on attachment 397557 [details]
Patch
Patch looks good.
Committed r260705: <https://trac.webkit.org/changeset/260705> All reviewed patches have been landed. Closing bug and clearing flags on attachment 397557 [details]. Comment on attachment 397557 [details]
Patch
What prevents this from causing a reference cycle?
(In reply to Darin Adler from comment #5) > Comment on attachment 397557 [details] > Patch > > What prevents this from causing a reference cycle? If an element is attached to the tree, document teardown will cause the effect-to-element relationship to be cleared. If the element is loose, like the one in this patch's testcase, it will potentially remain until the animation's effect is kept alive. If there are no JS references to the effect, then the procedure to remove replaced animations as defined in https://drafts.csswg.org/web-animations-1/#remove-replaced-animations will take care of this. |