[Webkit-unassigned] [Bug 226330] Shadow DOM unnecessarily invalidated on pseudo element change, causing CPU spikes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 22 21:43:21 PDT 2022


--- Comment #8 from zalan <zalan at apple.com> ---
I did a bit of profiling on this and it looks like (after the invalidation fix), this is simply about iterating over that massive amount of content when computing selection boundary. 
The following, simple markup triggers this issue:

Click Me<input type="checkbox"><br>
repeat it for a few thousands of times

It looks like VisibleSelection needs a more efficient way to figure out the selection end on user action (or in general for that matter).

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220623/8b9118da/attachment.htm>

More information about the webkit-unassigned mailing list