mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Relax a bit an invalid assertion.
We may end up looking at a non-flushed AuthorStyles object when looking at whether attribute changes and such may affect style. Check the styles are clean to preserve the assertion, since if that happens before the first flush, we may not have updated the quirks_mode field (and that's fine). Bug: 1468640 MozReview-Commit-ID: FgVpiTf4qMr
This commit is contained in:
parent
7230102eba
commit
63981e962a
1 changed files with 3 additions and 1 deletions
|
@ -178,11 +178,13 @@ impl<'lr> TShadowRoot for GeckoShadowRoot<'lr> {
|
|||
as *const bindings::RawServoAuthorStyles)
|
||||
};
|
||||
|
||||
|
||||
let author_styles = AuthorStyles::<GeckoStyleSheet>::from_ffi(author_styles);
|
||||
|
||||
debug_assert!(
|
||||
author_styles.quirks_mode == self.as_node().owner_doc().quirks_mode() ||
|
||||
author_styles.stylesheets.is_empty()
|
||||
author_styles.stylesheets.is_empty() ||
|
||||
author_styles.stylesheets.dirty()
|
||||
);
|
||||
|
||||
&author_styles.data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue