NEW 245939
[web-animations] avoid extra serialization and parsing when calling commitStyles()
https://bugs.webkit.org/show_bug.cgi?id=245939
Summary [web-animations] avoid extra serialization and parsing when calling commitSty...
Antoine Quint
Reported 2022-10-02 00:12:40 PDT
Currently WebAnimation::commitStyles() is rather inefficient as it sets new inline styles on a CSSStyleDeclaration as text, which requires serialization from the CSSValue and then parsing, and finally serializes the whole declaration before having it re-parsed once more when we call setAttribute("style", …). We should find a way to just pass around the CSSValue into the underlying data structures throughout.
Attachments
Antoine Quint
Comment 1 2022-10-02 00:18:48 PDT
Radar WebKit Bug Importer
Comment 2 2022-10-09 00:13:19 PDT
Note You need to log in before you can comment on or make changes to this bug.