diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-09-13 19:12:49 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-09-13 19:12:49 +0200 |
commit | 31079e2e3dfba8aa2a18ec06e4107f9080660b86 (patch) | |
tree | 7b7fa4cb732fed860209d6a2fc14149bc9e858dd /components/style/stylesheet_set.rs | |
parent | 82c58d0a05d2bf00bbb64fc83dd05469eeec5a43 (diff) | |
download | servo-31079e2e3dfba8aa2a18ec06e4107f9080660b86.tar.gz servo-31079e2e3dfba8aa2a18ec06e4107f9080660b86.zip |
style: Disable "removed" assertion in Gecko.
Diffstat (limited to 'components/style/stylesheet_set.rs')
-rw-r--r-- | components/style/stylesheet_set.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs index a05227868a8..2611208d99e 100644 --- a/components/style/stylesheet_set.rs +++ b/components/style/stylesheet_set.rs @@ -282,7 +282,13 @@ where fn remove(&mut self, sheet: &S) { let old_len = self.entries.len(); self.entries.retain(|entry| entry.sheet != *sheet); - debug_assert!(self.entries.len() != old_len, "Sheet not found?"); + if cfg!(feature = "servo") { + // FIXME(emilio): Make Gecko's PresShell::AddUserSheet not suck. + // + // Hopefully that's not necessary for correctness, just somewhat + // overkill. + debug_assert!(self.entries.len() != old_len, "Sheet not found?"); + } // Removing sheets makes us tear down the whole cascade and invalidation // data. self.set_data_validity_at_least(OriginValidity::FullyInvalid); |