aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script')
-rw-r--r--src/components/script/layout_interface.rs2
-rw-r--r--src/components/script/script_task.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/layout_interface.rs b/src/components/script/layout_interface.rs
index 224c51918a8..9249d39b051 100644
--- a/src/components/script/layout_interface.rs
+++ b/src/components/script/layout_interface.rs
@@ -85,7 +85,7 @@ pub type UntrustedNodeAddress = *c_void;
pub struct ContentBoxResponse(pub Rect<Au>);
pub struct ContentBoxesResponse(pub ~[Rect<Au>]);
pub struct HitTestResponse(pub UntrustedNodeAddress);
-pub struct MouseOverResponse(pub ~[UntrustedNodeAddress]);
+pub struct MouseOverResponse(pub Vec<UntrustedNodeAddress>);
/// Determines which part of the
#[deriving(Eq, Ord, TotalEq, TotalOrd, Encodable)]
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index ff236836bd5..49b26affa63 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -459,7 +459,7 @@ impl Page {
address
}
- pub fn get_nodes_under_mouse(&self, point: &Point2D<f32>) -> Option<~[UntrustedNodeAddress]> {
+ pub fn get_nodes_under_mouse(&self, point: &Point2D<f32>) -> Option<Vec<UntrustedNodeAddress>> {
let frame = self.frame();
let document = frame.get_ref().document.clone();
let root = document.get().GetDocumentElement();