Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2025-08-04 21:33:36 +08:00
commit db9b04cc44
12 changed files with 250 additions and 3 deletions

View file

@ -653,9 +653,10 @@ CascadeRuleEnumFunc(css::Rule* aRule, void* aData)
} else if (css::Rule::IMPORT_RULE == type &&
nsCSSRuleUtils::LoadImportedSheetsInOrderEnabled()) {
css::ImportRule* importRule = static_cast<css::ImportRule*>(aRule);
nsCSSRuleProcessor::CascadeSheet(
importRule->GetStyleSheet()->AsConcrete(),
layer);
StyleSheet* sheet = importRule->GetStyleSheet();
if (sheet) {
nsCSSRuleProcessor::CascadeSheet(sheet->AsConcrete(), layer);
}
}
return true;
}