mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 16:17:29 +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 &&
|
} else if (css::Rule::IMPORT_RULE == type &&
|
||||||
nsCSSRuleUtils::LoadImportedSheetsInOrderEnabled()) {
|
nsCSSRuleUtils::LoadImportedSheetsInOrderEnabled()) {
|
||||||
css::ImportRule* importRule = static_cast<css::ImportRule*>(aRule);
|
css::ImportRule* importRule = static_cast<css::ImportRule*>(aRule);
|
||||||
nsCSSRuleProcessor::CascadeSheet(
|
StyleSheet* sheet = importRule->GetStyleSheet();
|
||||||
importRule->GetStyleSheet()->AsConcrete(),
|
if (sheet) {
|
||||||
layer);
|
nsCSSRuleProcessor::CascadeSheet(sheet->AsConcrete(), layer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue