mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
s/nodes_from_point/nodes_from_point_response and change test from reftest to regular test checking only the fixed crash
This commit is contained in:
parent
7426d902a3
commit
31d833f32c
6 changed files with 17 additions and 32 deletions
|
@ -147,7 +147,7 @@ impl LayoutRPC for LayoutRPCImpl {
|
|||
}
|
||||
}
|
||||
|
||||
fn nodes_from_point(&self) -> Vec<UntrustedNodeAddress> {
|
||||
fn nodes_from_point_response(&self) -> Vec<UntrustedNodeAddress> {
|
||||
let &LayoutRPCImpl(ref rw_data) = self;
|
||||
let rw_data = rw_data.lock().unwrap();
|
||||
rw_data.nodes_from_point_response.clone()
|
||||
|
|
|
@ -1883,7 +1883,7 @@ impl Document {
|
|||
return vec!();
|
||||
};
|
||||
|
||||
self.window.layout().nodes_from_point()
|
||||
self.window.layout().nodes_from_point_response()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ pub trait LayoutRPC {
|
|||
/// Requests the list of not-yet-loaded images that were encountered in the last reflow.
|
||||
fn pending_images(&self) -> Vec<PendingImage>;
|
||||
/// Requests the list of nodes from the given point.
|
||||
fn nodes_from_point(&self) -> Vec<UntrustedNodeAddress>;
|
||||
fn nodes_from_point_response(&self) -> Vec<UntrustedNodeAddress>;
|
||||
|
||||
fn text_index(&self) -> TextIndexResponse;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue