style: Remove invalid assertion.

We can look at stale styles while trying to figure out if we need any
invalidation, and that's ok.

Bug: 1449243
MozReview-Commit-ID: 4mBIFNm9qJv
This commit is contained in:
Emilio Cobos Álvarez 2018-06-04 13:25:41 +02:00
parent ea5417b29c
commit 35a1a30f6b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -181,7 +181,6 @@ impl<'lr> TShadowRoot for GeckoShadowRoot<'lr> {
let author_styles = AuthorStyles::<GeckoStyleSheet>::from_ffi(author_styles); let author_styles = AuthorStyles::<GeckoStyleSheet>::from_ffi(author_styles);
debug_assert!(!author_styles.stylesheets.dirty());
debug_assert!( debug_assert!(
author_styles.quirks_mode == self.as_node().owner_doc().quirks_mode() || author_styles.quirks_mode == self.as_node().owner_doc().quirks_mode() ||
author_styles.stylesheets.is_empty() author_styles.stylesheets.is_empty()