mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -10,7 +10,7 @@ use dom::bindings::codegen::Bindings::HTMLTableElementBinding::HTMLTableElementM
|
|||
use dom::bindings::codegen::Bindings::NodeBinding::NodeMethods;
|
||||
use dom::bindings::error::{Error, ErrorResult, Fallible};
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::root::{JS, LayoutJS, MutNullableJS, Root, RootedReference};
|
||||
use dom::bindings::root::{Dom, LayoutJS, MutNullableJS, Root, RootedReference};
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::document::Document;
|
||||
use dom::element::{AttributeMutation, Element, RawLayoutElementHelpers};
|
||||
|
@ -38,7 +38,7 @@ pub struct HTMLTableElement {
|
|||
#[allow(unrooted_must_root)]
|
||||
#[derive(HeapSizeOf, JSTraceable)]
|
||||
struct TableRowFilter {
|
||||
sections: Vec<JS<Node>>,
|
||||
sections: Vec<Dom<Node>>,
|
||||
}
|
||||
|
||||
impl CollectionFilter for TableRowFilter {
|
||||
|
@ -141,7 +141,7 @@ impl HTMLTableElement {
|
|||
sections: self.upcast::<Node>()
|
||||
.children()
|
||||
.filter_map(|ref node|
|
||||
node.downcast::<HTMLTableSectionElement>().map(|_| JS::from_ref(&**node)))
|
||||
node.downcast::<HTMLTableSectionElement>().map(|_| Dom::from_ref(&**node)))
|
||||
.collect()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue