1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-12 02:30:30 +09: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
Notes: sideshowbarker 2024-07-17 17:26:34 +09:00
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();
}
}