Make ScriptTask::mouse_over_targets use Vec.

This commit is contained in:
Ms2ger 2014-04-26 11:49:53 +02:00
parent 3ecfb9197f
commit ebe4b416f3

View file

@ -524,7 +524,7 @@ pub struct ScriptTask {
/// The JavaScript runtime.
pub js_runtime: js::rust::rt,
pub mouse_over_targets: RefCell<Option<~[JS<Node>]>>
pub mouse_over_targets: RefCell<Option<Vec<JS<Node>>>>
}
/// In the event of task failure, all data on the stack runs its destructor. However, there
@ -1101,7 +1101,7 @@ impl ScriptTask {
match page.get_nodes_under_mouse(&point) {
Some(node_address) => {
let mut target_list: ~[JS<Node>] = ~[];
let mut target_list = vec!();
let mut target_compare = false;
let mouse_over_targets = &mut *self.mouse_over_targets.borrow_mut();