mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
layout: Avoid ClipId, ExternalScrollId and ScrollTreeNodeId references (#39372)
Changes function signatures to accept `ClipId`, `ExternalScrollId` and `ScrollTreeNodeId` instead of `&ClipId`, `&ExternalScrollId` and `&ScrollTreeNodeId`. This avoids several `&` and `*`. Testing: not needed, no behavior change. Signed-off-by: Oriol Brufau <obrufau@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
aeeb3cb488
commit
1473121fe5
8 changed files with 74 additions and 75 deletions
|
@ -66,7 +66,7 @@ fn root_transform_for_layout_node(
|
|||
.borrow();
|
||||
let scroll_tree_node_id = box_fragment.spatial_tree_node.borrow();
|
||||
let scroll_tree_node_id = (*scroll_tree_node_id)?;
|
||||
Some(scroll_tree.cumulative_node_to_root_transform(&scroll_tree_node_id))
|
||||
Some(scroll_tree.cumulative_node_to_root_transform(scroll_tree_node_id))
|
||||
}
|
||||
|
||||
pub(crate) fn process_box_area_request(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue