Skip diffing algorithm for constructed stylesheets
If a constructed stylesheet contains rules with 'background-clip:text;', InspectorStyleSheet won't be able to parse them properly, causing the rule diffing algorithm to run. When the number of rules to diff is high, it causes performance problems when opening DevTools. This CL skips the diffing for constructed stylesheets, because the order of rules for constructed stylesheets is known. Ultimately, this workaround would not be needed when InspectorStyleSheet can parse the CSS rules properly. See crbug.com/1132778, crbug.com/604023. Fixed: 1131113 Change-Id: I5c38a52bfb2b04334530c292cd8b4e15c9f6c2f8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2435304Reviewed-by:Peter Marshall <petermarshall@chromium.org> Reviewed-by:
Mathias Bynens <mathias@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Cr-Commit-Position: refs/heads/master@{#811634}
Showing
Please register or sign in to comment