DescriptionMove Document global rule data to CSSGlobalRuleSet.
This CL is split out from [1] with some modifications.
Instead of storing these data in the StyleResolver, create a new class
to store them in StyleEngine instead. See the design document linked
from issue 401359 which talks about moving this content off of
StyleResolver. Also made a note that we should further try to contain
as much of this data as possible per TreeScope to avoid the need for
constantly having to update these meta data for shadow tree
modifications.
We get rid of some of the duplicate storing of some of these features.
See what was previously set on StyleEngine (resetCSSFeatureFlags()).
This is also in preparation for async stylesheet update (issue 567021).
There are few places where we synchronously update this new rule set
directly after marking it as dirty which will happen later when all
parts of [1] lands.
Another synchronous update we will be able to remove later is making
the RuleFeatureSet up-to-date when scheduling style invalidations
(marked as TODOs for sync calls to ensureResolver()). The need for
these calls is supported by the added invalidation tests which would
otherwise fail.
[1] https://codereview.chromium.org/1913833002/
BUG=401359, 567021
Committed: https://crrev.com/17bc158897bb9b9d6b1400ed76092a412de16bc9
Cr-Commit-Position: refs/heads/master@{#428327}
Patch Set 1 #Patch Set 2 : Rebased. #Messages
Total messages: 18 (10 generated)
|