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
|
@ -6,7 +6,7 @@ use dom::bindings::codegen::Bindings::HTMLCollectionBinding;
|
|||
use dom::bindings::codegen::Bindings::HTMLCollectionBinding::HTMLCollectionMethods;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::reflector::{Reflector, reflect_dom_object};
|
||||
use dom::bindings::root::{JS, Root, MutNullableJS};
|
||||
use dom::bindings::root::{Dom, Root, MutNullableJS};
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::bindings::trace::JSTraceable;
|
||||
use dom::bindings::xmlname::namespace_from_domstring;
|
||||
|
@ -53,7 +53,7 @@ impl OptionU32 {
|
|||
#[dom_struct]
|
||||
pub struct HTMLCollection {
|
||||
reflector_: Reflector,
|
||||
root: JS<Node>,
|
||||
root: Dom<Node>,
|
||||
#[ignore_heap_size_of = "Contains a trait object; can't measure due to #6870"]
|
||||
filter: Box<CollectionFilter + 'static>,
|
||||
// We cache the version of the root node and all its decendents,
|
||||
|
@ -70,7 +70,7 @@ impl HTMLCollection {
|
|||
pub fn new_inherited(root: &Node, filter: Box<CollectionFilter + 'static>) -> HTMLCollection {
|
||||
HTMLCollection {
|
||||
reflector_: Reflector::new(),
|
||||
root: JS::from_ref(root),
|
||||
root: Dom::from_ref(root),
|
||||
filter: filter,
|
||||
// Default values for the cache
|
||||
cached_version: Cell::new(root.inclusive_descendants_version()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue