RESOLVED FIXED 274739
[view-transitions] Resolving styles with a large set of named view-transition elements is slow
https://bugs.webkit.org/show_bug.cgi?id=274739
Summary [view-transitions] Resolving styles with a large set of named view-transition...
Matt Woodrow
Reported 2024-05-26 18:24:33 PDT
For every named element in a view transition, 4 styles are inserted in the UA style sheet. View transitions currently restyle the entire view transition pseudo tree for changes to any of them (since mutations are keyed to the owning element, which is the document element for the whole tree). There are 4 named pseudo elements per view transition name, resulting in pretty slow O(n^2) restyling. We can improve this somewhat by putting pseudo element selectors with a name argument (like ::view-transition-group(name)) into a hash map, so that we only need to iterate the somewhat-relevant ones.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-05-26 18:25:52 PDT
Matt Woodrow
Comment 2 2024-05-26 18:28:12 PDT
EWS
Comment 3 2024-05-29 18:07:33 PDT
Committed 279484@main (4a0a4473f926): <https://commits.webkit.org/279484@main> Reviewed commits have been landed. Closing PR #29136 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.