mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Rename a local closure in get_buffer_request
This commit is contained in:
parent
952bb4e238
commit
567ee422b1
1 changed files with 2 additions and 2 deletions
|
@ -371,7 +371,7 @@ impl CompositorData {
|
|||
CompositorData::build_layer_tree(layer.clone(), graphics_context);
|
||||
}
|
||||
|
||||
let transform = |kid: Rc<ContainerLayer<CompositorData>>| -> bool {
|
||||
let get_child_buffer_request = |kid: Rc<ContainerLayer<CompositorData>>| -> bool {
|
||||
match kid.extra_data.borrow().scissor {
|
||||
Some(scissor) => {
|
||||
let mut new_rect = window_rect;
|
||||
|
@ -400,7 +400,7 @@ impl CompositorData {
|
|||
};
|
||||
|
||||
layer.children().filter(|x| !x.extra_data.borrow().hidden)
|
||||
.map(transform)
|
||||
.map(get_child_buffer_request)
|
||||
.any(|b| b) || redisplay
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue