mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
remove extra spaces after keywords
This commit is contained in:
parent
c225847a81
commit
677a24a8d6
4 changed files with 4 additions and 4 deletions
|
@ -2037,7 +2037,7 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
|
||||||
let visibility_msg = ConstellationControlMsg::NotifyVisibilityChange(parent_pipeline_id,
|
let visibility_msg = ConstellationControlMsg::NotifyVisibilityChange(parent_pipeline_id,
|
||||||
browsing_context_id,
|
browsing_context_id,
|
||||||
visibility);
|
visibility);
|
||||||
let result = match self.pipelines.get(&parent_pipeline_id) {
|
let result = match self.pipelines.get(&parent_pipeline_id) {
|
||||||
None => return warn!("Parent pipeline {:?} closed", parent_pipeline_id),
|
None => return warn!("Parent pipeline {:?} closed", parent_pipeline_id),
|
||||||
Some(parent_pipeline) => parent_pipeline.event_loop.send(visibility_msg),
|
Some(parent_pipeline) => parent_pipeline.event_loop.send(visibility_msg),
|
||||||
};
|
};
|
||||||
|
|
|
@ -960,7 +960,7 @@ impl Document {
|
||||||
let line = click_pos - last_pos;
|
let line = click_pos - last_pos;
|
||||||
let dist = (line.dot(line) as f64).sqrt();
|
let dist = (line.dot(line) as f64).sqrt();
|
||||||
|
|
||||||
if now.duration_since(last_time) < DBL_CLICK_TIMEOUT &&
|
if now.duration_since(last_time) < DBL_CLICK_TIMEOUT &&
|
||||||
dist < DBL_CLICK_DIST_THRESHOLD as f64 {
|
dist < DBL_CLICK_DIST_THRESHOLD as f64 {
|
||||||
// A double click has occurred if this click is within a certain time and dist. of previous click.
|
// A double click has occurred if this click is within a certain time and dist. of previous click.
|
||||||
let click_count = 2;
|
let click_count = 2;
|
||||||
|
|
|
@ -176,7 +176,7 @@ impl ServiceWorkerManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let _ = mediator.response_chan.send(None);
|
let _ = mediator.response_chan.send(None);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let _ = mediator.response_chan.send(None);
|
let _ = mediator.response_chan.send(None);
|
||||||
|
|
|
@ -938,7 +938,7 @@ fn test_load_follows_a_redirect() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_redirect_from_x_to_y_provides_y_cookies_from_y() {
|
fn test_redirect_from_x_to_y_provides_y_cookies_from_y() {
|
||||||
let shared_url_y = Arc::new(Mutex::new(None::<ServoUrl>));
|
let shared_url_y = Arc::new(Mutex::new(None::<ServoUrl>));
|
||||||
let shared_url_y_clone = shared_url_y.clone();
|
let shared_url_y_clone = shared_url_y.clone();
|
||||||
let handler = move |request: HyperRequest, mut response: HyperResponse| {
|
let handler = move |request: HyperRequest, mut response: HyperResponse| {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue