mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Make ScriptTask::mouse_over_targets use Vec.
This commit is contained in:
parent
3ecfb9197f
commit
ebe4b416f3
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue