1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 12:25:06 +00:00

LibWeb: Invalidate styles after CSSImportRule loads

This replicates the behavior of StyleSheetList::add_sheet, making sure
the rules added by the imported style sheet are applied.
This commit is contained in:
Simon Wanner 2022-03-14 20:56:05 +01:00 committed by Andreas Kling
parent 1ed5e79478
commit 1f9d76c7b8
4 changed files with 7 additions and 0 deletions

View file

@ -84,6 +84,9 @@ void CSSImportRule::resource_did_load()
}
m_style_sheet = move(sheet);
m_document->style_sheets().bump_generation();
m_document->invalidate_style();
}
}