mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename JS<T> to Dom<T>
This commit is contained in:
parent
0e3c54c191
commit
7be32fb237
96 changed files with 494 additions and 494 deletions
|
@ -11,7 +11,7 @@ use dom::bindings::cell::DOMRefCell;
|
|||
use dom::bindings::error::Error;
|
||||
use dom::bindings::refcounted::{Trusted, TrustedPromise};
|
||||
use dom::bindings::reflector::DomObject;
|
||||
use dom::bindings::root::JS;
|
||||
use dom::bindings::root::Dom;
|
||||
use dom::client::Client;
|
||||
use dom::promise::Promise;
|
||||
use dom::serviceworkerregistration::ServiceWorkerRegistration;
|
||||
|
@ -46,7 +46,7 @@ pub struct Job {
|
|||
pub promise: Rc<Promise>,
|
||||
pub equivalent_jobs: Vec<Job>,
|
||||
// client can be a window client, worker client so `Client` will be an enum in future
|
||||
pub client: JS<Client>,
|
||||
pub client: Dom<Client>,
|
||||
pub referrer: ServoUrl
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ impl Job {
|
|||
script_url: script_url,
|
||||
promise: promise,
|
||||
equivalent_jobs: vec![],
|
||||
client: JS::from_ref(client),
|
||||
client: Dom::from_ref(client),
|
||||
referrer: client.creation_url()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue