mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
layout: return None bounding box when no nodes found (#31253)
Signed-off-by: syvb <me@iter.ca>
This commit is contained in:
parent
95931de499
commit
436e949296
6 changed files with 18 additions and 24 deletions
|
@ -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>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue