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:
parent
1ed5e79478
commit
1f9d76c7b8
4 changed files with 7 additions and 0 deletions
|
@ -84,6 +84,9 @@ void CSSImportRule::resource_did_load()
|
|||
}
|
||||
|
||||
m_style_sheet = move(sheet);
|
||||
|
||||
m_document->style_sheets().bump_generation();
|
||||
m_document->invalidate_style();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue