mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Disable "removed" assertion in Gecko.
This commit is contained in:
parent
82c58d0a05
commit
31079e2e3d
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue