mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-22 20:33:10 +09:00
Issue #2835 - Follow-up: Guard against import rules with no attached style sheet
This commit is contained in:
parent
1ffa7569e9
commit
2026586ce1
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue