layout: return None bounding box when no nodes found (#31253)

Signed-off-by: syvb <me@iter.ca>
This commit is contained in:
Smitty 2024-02-02 18:24:20 -05:00 committed by GitHub
parent 95931de499
commit 436e949296
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 18 additions and 24 deletions

View file

@ -173,7 +173,7 @@ pub fn process_content_box_request(
requested_node: OpaqueNode,
fragment_tree: Option<Arc<FragmentTree>>,
) -> Option<Rect<Au>> {
Some(fragment_tree?.get_content_box_for_node(requested_node))
fragment_tree?.get_content_box_for_node(requested_node)
}
pub fn process_content_boxes_request(_requested_node: OpaqueNode) -> Vec<Rect<Au>> {