style: Assert sanity in GeckoNode::as_document.

This commit is contained in:
Emilio Cobos Álvarez 2018-03-03 22:34:11 +01:00
parent 56fc1a6649
commit f422c7dca4
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -383,6 +383,7 @@ impl<'ln> TNode for GeckoNode<'ln> {
return None; return None;
} }
debug_assert_eq!(self.owner_doc().as_node(), *self, "How?");
Some(self.owner_doc()) Some(self.owner_doc())
} }