LibWeb/CSS: Set @import as the owner rule of their loaded style sheet

This commit is contained in:
Sam Atkins 2024-08-23 17:47:05 +01:00 committed by Sam Atkins
parent 4e18fce3a5
commit 240b58e90f
Notes: github-actions[bot] 2024-09-03 09:13:42 +00:00

View file

@ -104,6 +104,7 @@ void CSSImportRule::resource_did_load()
}
m_style_sheet = sheet;
m_style_sheet->set_owner_css_rule(this);
m_document->style_computer().invalidate_rule_cache();
m_document->style_computer().load_fonts_from_sheet(*m_style_sheet);