DescriptionUse hash set instead of vector for changed RuleSets.
That way, we don't have to consider the same RuleSet multiple times for
invalidation on active stylesheet update. This fixes a regression in
PerformanceTests/CSS/StyleSheetInsert.html which would have been
introduced by https://codereview.chromium.org/2557533005
This works because the same style element source text used multiple
times will make us use the same StyleSheetContents from the cache and
hence the same RuleSet for all 50 sheets added in that test. It's a bit
like cheating, but this will also make sure we don't invalidate for the
same RuleSet twice if we re-order stylesheets by removing/inserting a
style element where the CSSStyleSheet pointer will be different, but
the RuleSet stays the same.
R=sashab@chromium.org,esprehn@chromium.org
BUG=567021
Committed: https://crrev.com/5eefd373b4c293d23cb5f69a7e2fc0620eaead3b
Cr-Commit-Position: refs/heads/master@{#438062}
Patch Set 1 #
Messages
Total messages: 13 (8 generated)
|