diff --git a/components/layout/query.rs b/components/layout/query.rs index 21c1c37d0ae..39aeb1cef71 100644 --- a/components/layout/query.rs +++ b/components/layout/query.rs @@ -549,6 +549,10 @@ impl FragmentBorderBoxIterator for ParentOffsetBorderBoxIterator { if fragment.node == self.node_address { // Found the fragment in the flow tree that matches the // DOM node being looked for. + + // If self.node_offset_box is Some, we were treating this as an inline node! + assert!(self.node_offset_box.is_none()); + self.has_processed_node = true; self.node_offset_box = Some(NodeOffsetBoxInfo { offset: border_box.origin,