[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


https://bugs.webkit.org/show_bug.cgi?id=226330

--- 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:

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

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