mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Flush shadow roots stylesheets only if they changed
This commit is contained in:
parent
a841c713d6
commit
2674a3e717
4 changed files with 54 additions and 7 deletions
|
@ -75,6 +75,7 @@ impl ShadowRoot {
|
|||
}
|
||||
|
||||
pub fn invalidate_stylesheets(&self) {
|
||||
self.document.invalidate_shadow_roots_stylesheets();
|
||||
self.author_styles.borrow_mut().stylesheets.force_dirty();
|
||||
// Mark the host element dirty so a reflow will be performed.
|
||||
self.host
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue