DescriptionApply RuleSet changes for active stylesheet changes.
Introduce an applyRuleSetChanges method which will take the old and new
ActiveStyleSheetVector use the existing comparison method and apply the
RuleSet diff to invalidate style for the document.
The normal mode for style rules is to schedule RuleSet invalidations
which will decide what to recalculate based on the invalidation sets.
Universal selectors, the presence of Shadow DOM v0 combinators, or
@font-face rules for the document scope, will cause a subtree recalc
for the TreeScope.
@keyframes rules utilizes the existing functionality for invalidating
style in the TreeScope and the host TreeScope for running and
unresolved animations.
This CL introduces appendActiveStyleSheets which will eventually
replace the combination of the lazy appending of sheets in
StyleResolver and appending pending sheets into the ScopedStyleResolver
through appendCSSStyleSheet.
This CL is split out of https://codereview.chromium.org/1913833002 and
re-worked a bit.
The functionality is not yet in use.
R=meade@chromium.org
BUG=567021
Committed: https://crrev.com/f8da12ea4e2bb01417c8a86a4e2b21f54b5d93fd
Cr-Commit-Position: refs/heads/master@{#423810}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 11 (6 generated)
|