NEW 126052
Avoid checking adjacent rules when doing a Force recalc or if no children changed
https://bugs.webkit.org/show_bug.cgi?id=126052
Summary Avoid checking adjacent rules when doing a Force recalc or if no children cha...
Ryosuke Niwa
Reported 2013-12-19 21:55:26 PST
Consider merging https://chromium.googlesource.com/chromium/blink/+/2e53720ae89d22d963aae65fe2de1d4d82cbf3c2 Iterating the children is a waste if we're already going to recalc everyone like in a Force situation or if we know that no children needStyleRecalc(). We should skip all the checking in these cases. I also refactored the loop into checkForChildrenAdjacentRuleChanges() since recalcChildStyle was getting too long.
Attachments
Note You need to log in before you can comment on or make changes to this bug.