mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
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:
parent
ec57be653a
commit
3605630f4e
9 changed files with 140 additions and 124 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue