mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
|
@ -7,7 +7,7 @@ use dom::bindings::codegen::Bindings::LocationBinding::LocationMethods;
|
|||
use dom::bindings::codegen::Bindings::WindowBinding::WindowBinding::WindowMethods;
|
||||
use dom::bindings::error::{Error, ErrorResult, Fallible};
|
||||
use dom::bindings::reflector::{Reflector, reflect_dom_object};
|
||||
use dom::bindings::root::{JS, Root};
|
||||
use dom::bindings::root::{Dom, Root};
|
||||
use dom::bindings::str::{DOMString, USVString};
|
||||
use dom::globalscope::GlobalScope;
|
||||
use dom::urlhelper::UrlHelper;
|
||||
|
@ -18,14 +18,14 @@ use servo_url::{MutableOrigin, ServoUrl};
|
|||
#[dom_struct]
|
||||
pub struct Location {
|
||||
reflector_: Reflector,
|
||||
window: JS<Window>,
|
||||
window: Dom<Window>,
|
||||
}
|
||||
|
||||
impl Location {
|
||||
fn new_inherited(window: &Window) -> Location {
|
||||
Location {
|
||||
reflector_: Reflector::new(),
|
||||
window: JS::from_ref(window)
|
||||
window: Dom::from_ref(window)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue