mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Rename Task to TaskBox
This commit is contained in:
parent
f088b708c9
commit
52527d6f9d
19 changed files with 71 additions and 69 deletions
|
@ -23,7 +23,7 @@ use dom_struct::dom_struct;
|
|||
use servo_atoms::Atom;
|
||||
use std::cell::Cell;
|
||||
use std::default::Default;
|
||||
use task::Task;
|
||||
use task::TaskBox;
|
||||
use time;
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -388,8 +388,8 @@ pub struct EventTask {
|
|||
pub cancelable: EventCancelable,
|
||||
}
|
||||
|
||||
impl Task for EventTask {
|
||||
fn run(self: Box<Self>) {
|
||||
impl TaskBox for EventTask {
|
||||
fn run_box(self: Box<Self>) {
|
||||
let target = self.target.root();
|
||||
let bubbles = self.bubbles;
|
||||
let cancelable = self.cancelable;
|
||||
|
@ -403,8 +403,8 @@ pub struct SimpleEventTask {
|
|||
pub name: Atom,
|
||||
}
|
||||
|
||||
impl Task for SimpleEventTask {
|
||||
fn run(self: Box<Self>) {
|
||||
impl TaskBox for SimpleEventTask {
|
||||
fn run_box(self: Box<Self>) {
|
||||
let target = self.target.root();
|
||||
target.fire_event(self.name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue