aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.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/htmlelement.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/htmlelement.rs')
-rw-r--r--components/script/dom/htmlelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs
index d4490357650..1d3c6c0346b 100644
--- a/components/script/dom/htmlelement.rs
+++ b/components/script/dom/htmlelement.rs
@@ -13,7 +13,7 @@ use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
use dom::bindings::error::{Error, ErrorResult};
use dom::bindings::inheritance::{ElementTypeId, HTMLElementTypeId, NodeTypeId};
use dom::bindings::inheritance::Castable;
-use dom::bindings::js::{JS, MutNullableHeap, Root, RootedReference};
+use dom::bindings::js::{MutNullableJS, Root, RootedReference};
use dom::bindings::str::DOMString;
use dom::cssstyledeclaration::{CSSModificationAccess, CSSStyleDeclaration};
use dom::document::{Document, FocusType};
@@ -40,8 +40,8 @@ use style::element_state::*;
#[dom_struct]
pub struct HTMLElement {
element: Element,
- style_decl: MutNullableHeap<JS<CSSStyleDeclaration>>,
- dataset: MutNullableHeap<JS<DOMStringMap>>,
+ style_decl: MutNullableJS<CSSStyleDeclaration>,
+ dataset: MutNullableJS<DOMStringMap>,
}
impl HTMLElement {