Issue #2828 – Part 10: Clean up cascade layer constructor

This also renames mIsWeak to mIsStrong. Cascade layers are weak by default and there's no point in always setting this to true.
This commit is contained in:
Francis Dominic Fajardo 2025-07-22 12:57:08 +08:00 committed by roytam1
commit a922ec0823
3 changed files with 13 additions and 60 deletions

View file

@ -736,6 +736,9 @@ nsCSSRuleProcessor::RefreshGroup(nsPresContext* aPresContext)
nsAutoPtr<RuleProcessorGroup> ruleProcessorSet(
new RuleProcessorGroup(aPresContext->Medium()));
CascadeLayer* implicitLayer(new CascadeLayer(aPresContext,
#if DEBUG
nullptr,
#endif
mDocumentRules,
mDocumentCacheKey,
mSheetType,