diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 8126f2e8670..34310df5522 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -383,6 +383,7 @@ impl<'ln> TNode for GeckoNode<'ln> { return None; } + debug_assert_eq!(self.owner_doc().as_node(), *self, "How?"); Some(self.owner_doc()) }