diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index db3188bd0bf..ace76867217 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -171,6 +171,7 @@ impl<'lr> TShadowRoot for GeckoShadowRoot<'lr> { let author_styles = AuthorStyles::::from_ffi(author_styles); + debug_assert!(!author_styles.stylesheets.dirty()); debug_assert!( author_styles.quirks_mode == self.as_node().owner_doc().quirks_mode() || author_styles.stylesheets.is_empty() diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs index fbff5501882..ab8114f422d 100644 --- a/components/style/stylesheet_set.rs +++ b/components/style/stylesheet_set.rs @@ -263,7 +263,7 @@ where Self { entries: vec![], data_validity: DataValidity::Valid, - dirty: true, + dirty: false, } } }