Issue #2828 - Part 8: Extract RuleProcessorGroup (formerly ResolvedRuleCascades) into separate file

The struct no longer holds rule cascades since part 5 anyway, and extracting it to a separate file allows it to be reused in the future.
This commit is contained in:
Francis Dominic Fajardo 2025-07-21 19:21:31 +08:00 committed by roytam1
commit 3605630f4e
9 changed files with 140 additions and 124 deletions

View file

@ -1478,17 +1478,6 @@ RuleCascadeData::AddRule(RuleSelectorPair* aRuleInfo)
return true;
}
size_t
ResolvedRuleCascades::SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const
{
size_t n = aMallocSizeOf(this);
for (uint32_t i = 0; i < mProcessors.Length(); i++) {
n += mProcessors[i]->SizeOfIncludingThis(aMallocSizeOf);
}
n += mProcessors.ShallowSizeOfExcludingThis(aMallocSizeOf);
return n;
}
struct PerWeightDataListItem : public RuleSelectorPair
{
PerWeightDataListItem(css::StyleRule* aRule, nsCSSSelector* aSelector)