mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Assert self.node_offset_box is None if fragment.node == self.node_address
This commit is contained in:
parent
6a76525107
commit
fa0cb7c8da
1 changed files with 4 additions and 0 deletions
|
@ -549,6 +549,10 @@ impl FragmentBorderBoxIterator for ParentOffsetBorderBoxIterator {
|
||||||
if fragment.node == self.node_address {
|
if fragment.node == self.node_address {
|
||||||
// Found the fragment in the flow tree that matches the
|
// Found the fragment in the flow tree that matches the
|
||||||
// DOM node being looked for.
|
// 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.has_processed_node = true;
|
||||||
self.node_offset_box = Some(NodeOffsetBoxInfo {
|
self.node_offset_box = Some(NodeOffsetBoxInfo {
|
||||||
offset: border_box.origin,
|
offset: border_box.origin,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue