mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Fix a build warning in compositor.rs
This commit is contained in:
parent
b29ae6383a
commit
8489b30042
1 changed files with 6 additions and 8 deletions
|
@ -1350,10 +1350,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
Some(root_pipeline_id) => root_pipeline_id,
|
||||
None => return,
|
||||
};
|
||||
let root_pipeline = match self.pipeline(root_pipeline_id) {
|
||||
Some(root_pipeline) => root_pipeline,
|
||||
None => return,
|
||||
};
|
||||
if self.pipeline(root_pipeline_id).is_none() {
|
||||
return;
|
||||
}
|
||||
|
||||
let (translated_point, translated_pipeline_id) =
|
||||
webrender_api.translate_point_to_layer_space(&point.to_untyped());
|
||||
|
@ -1395,10 +1394,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
Some(root_pipeline_id) => root_pipeline_id,
|
||||
None => return,
|
||||
};
|
||||
let root_pipeline = match self.pipeline(root_pipeline_id) {
|
||||
Some(root_pipeline) => root_pipeline,
|
||||
None => return,
|
||||
};
|
||||
if self.pipeline(root_pipeline_id).is_none() {
|
||||
return;
|
||||
}
|
||||
|
||||
let (translated_point, translated_pipeline_id) =
|
||||
webrender_api.translate_point_to_layer_space(&cursor.to_untyped());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue