[Webkit-unassigned] [Bug 98982] Setting className attribute causes slow performance
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 5 13:49:57 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=98982
--- Comment #11 from Antti Koivisto <koivisto at iki.fi> 2013-04-05 13:48:10 PST ---
(In reply to comment #10)
> (In reply to comment #9)
> > We should already have do-nothing optimization for adding the same class again. Have you verified recently it is not working?
>
> The case that Brad is talking about is changing the class attribute but not in a way that impacts style resolution. For example `element.className += ' '`. This would of course impact `[class='abc']` selectors but I believe we already keep track of attribute selectors.
We do put some effort into optimizing class list change. Check Element::classAttributeChanged() and checkSelectorForClassChange() to see if there is something obvious we could still do.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list