mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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::MediaListBinding;
|
|||
use dom::bindings::codegen::Bindings::MediaListBinding::MediaListMethods;
|
||||
use dom::bindings::codegen::Bindings::WindowBinding::WindowBinding::WindowMethods;
|
||||
use dom::bindings::reflector::{DomObject, Reflector, reflect_dom_object};
|
||||
use dom::bindings::root::{JS, Root};
|
||||
use dom::bindings::root::{Dom, Root};
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::cssstylesheet::CSSStyleSheet;
|
||||
use dom::window::Window;
|
||||
|
@ -23,7 +23,7 @@ use style_traits::{PARSING_MODE_DEFAULT, ToCss};
|
|||
#[dom_struct]
|
||||
pub struct MediaList {
|
||||
reflector_: Reflector,
|
||||
parent_stylesheet: JS<CSSStyleSheet>,
|
||||
parent_stylesheet: Dom<CSSStyleSheet>,
|
||||
#[ignore_heap_size_of = "Arc"]
|
||||
media_queries: Arc<Locked<StyleMediaList>>,
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ impl MediaList {
|
|||
pub fn new_inherited(parent_stylesheet: &CSSStyleSheet,
|
||||
media_queries: Arc<Locked<StyleMediaList>>) -> MediaList {
|
||||
MediaList {
|
||||
parent_stylesheet: JS::from_ref(parent_stylesheet),
|
||||
parent_stylesheet: Dom::from_ref(parent_stylesheet),
|
||||
reflector_: Reflector::new(),
|
||||
media_queries: media_queries,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue