From 240b58e90fbc4420b8eb4509e42c5668330ad61a Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 23 Aug 2024 17:47:05 +0100 Subject: [PATCH] LibWeb/CSS: Set `@import` as the owner rule of their loaded style sheet --- Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp index 0b9e28860e2..4239c00196c 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp @@ -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);