public sealed class StyleRuleSetEvery rule that has been loaded, indexed and ready to cascade.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The rule index buckets by the rightmost compound and hands an element single digits' worth of candidates; this holds what those candidates are, which the matcher never needed to know.
Rules from every origin live in one list and one index. They have to: an element's candidates are found once, and separating the origins would mean three lookups and three blooms to save a comparison that CascadePrecedence does anyway.
Fields and properties (8)
public NameTable NamesThe table selector names are interned in.
public NameTable PropertiesThe table property names are interned in.
public NameTable ValuesThe table declaration values are interned in.
public RuleIndex IndexThe bucketed index over these rules.
public CascadeLayers LayersThe layers these rules declared.
public int CountHow many rules there are.
public bool SharingIsSoundWhether the style-sharing cache may be used at all with this rule set.
public StyleRule this[int rule]A rule.
Methods (3)
public StyleRuleSet(SelectorTable table, NameTable names, NameTable properties, NameTable values)Creates an empty set.
public ReadOnlySpan<Declaration> DeclarationsOf(DeclarationRange range)The declarations of a rule.
public int Add(Selector selector, ReadOnlySpan<Declaration> block, StyleOrigin origin, int layer)Adds a rule.
Used by (8)
- CascadeOrderTestsVixen.Ui.Styling.Tests
- IncrementalRestyleOracleTestsVixen.Ui.Styling.Tests
- StyleEngineVixen.Ui.Styling
- StyleInvalidatorVixen.Ui.Styling
- StyleResolverVixen.Ui.Styling
- StyleSharingOracleTestsVixen.Ui.Styling.Tests
- StyleSheetLoaderVixen.Ui.Styling
- StyleSheetLoadingTestsVixen.Ui.Styling.Tests