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:
Fernando Jiménez Moreno 2017-03-02 16:51:42 +01:00
parent 7426d902a3
commit 31d833f32c
6 changed files with 17 additions and 32 deletions

View file

@ -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()

View file

@ -1883,7 +1883,7 @@ impl Document {
return vec!();
};
self.window.layout().nodes_from_point()
self.window.layout().nodes_from_point_response()
}
}

View file

@ -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;
}