mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Added assertion to process_offset_parent_query
This commit is contained in:
parent
dc93a72997
commit
014ad76b97
1 changed files with 2 additions and 0 deletions
|
@ -807,6 +807,8 @@ pub fn process_offset_parent_query<N: LayoutNode>(requested_node: N, layout_root
|
|||
-> OffsetParentResponse {
|
||||
let mut iterator = ParentOffsetBorderBoxIterator::new(requested_node.opaque());
|
||||
sequential::iterate_through_flow_tree_fragment_border_boxes(layout_root, &mut iterator);
|
||||
assert!(iterator.has_found_node);
|
||||
|
||||
let parent_info_index = iterator.parent_nodes.iter().rposition(|info| info.is_some());
|
||||
match parent_info_index {
|
||||
Some(parent_info_index) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue