aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/range.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-12-11 01:19:04 -1000
committerAnthony Ramine <n.oxyde@gmail.com>2016-12-12 10:47:54 -1000
commit1327ebd52f53f5f6637a12fab6cf0cad0aa0be6f (patch)
treecaa0933e802d9cdb5791fb465a051be5cf8e05f7 /components/script/dom/range.rs
parentf7d53b7bc18f10bac98b038c94f46f09fc02e002 (diff)
downloadservo-1327ebd52f53f5f6637a12fab6cf0cad0aa0be6f.tar.gz
servo-1327ebd52f53f5f6637a12fab6cf0cad0aa0be6f.zip
Remove HeapGCValue
It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
Diffstat (limited to 'components/script/dom/range.rs')
-rw-r--r--components/script/dom/range.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs
index 723239ea3d3..e9e3a484d41 100644
--- a/components/script/dom/range.rs
+++ b/components/script/dom/range.rs
@@ -13,7 +13,7 @@ use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
use dom::bindings::error::{Error, ErrorResult, Fallible};
use dom::bindings::inheritance::{CharacterDataTypeId, NodeTypeId};
use dom::bindings::inheritance::Castable;
-use dom::bindings::js::{JS, MutHeap, Root, RootedReference};
+use dom::bindings::js::{JS, MutJS, Root, RootedReference};
use dom::bindings::reflector::{Reflector, reflect_dom_object};
use dom::bindings::str::DOMString;
use dom::bindings::trace::JSTraceable;
@@ -934,7 +934,7 @@ impl RangeMethods for Range {
#[privatize]
#[derive(HeapSizeOf)]
pub struct BoundaryPoint {
- node: MutHeap<JS<Node>>,
+ node: MutJS<Node>,
offset: Cell<u32>,
}
@@ -943,7 +943,7 @@ impl BoundaryPoint {
debug_assert!(!node.is_doctype());
debug_assert!(offset <= node.len());
BoundaryPoint {
- node: MutHeap::new(node),
+ node: MutJS::new(node),
offset: Cell::new(offset),
}
}