aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/element.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-09-29 04:00:55 +0530
committerManish Goregaokar <manishsmail@gmail.com>2014-10-05 22:09:12 +0530
commit96f6c2fd67533464135771df1b8fd552e79bb49a (patch)
treeaf8d5d870b6caf3d794aabc33452a75ccecf3674 /components/script/dom/element.rs
parent4f362ab5e6559a16af98e86d69eb64d0c6e5734c (diff)
downloadservo-96f6c2fd67533464135771df1b8fd552e79bb49a.tar.gz
servo-96f6c2fd67533464135771df1b8fd552e79bb49a.zip
Remove Traceable from element.rs
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r--components/script/dom/element.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs
index 324cb02b2a7..a3960116ab2 100644
--- a/components/script/dom/element.rs
+++ b/components/script/dom/element.rs
@@ -14,7 +14,6 @@ use dom::bindings::codegen::Bindings::NamedNodeMapBinding::NamedNodeMapMethods;
use dom::bindings::codegen::InheritTypes::{ElementDerived, NodeCast};
use dom::bindings::js::{MutNullableJS, JS, JSRef, Temporary, TemporaryPushable};
use dom::bindings::js::{OptionalSettable, OptionalRootable, Root};
-use dom::bindings::trace::Traceable;
use dom::bindings::utils::{Reflectable, Reflector};
use dom::bindings::error::{ErrorResult, Fallible, NamespaceError, InvalidCharacter, Syntax};
use dom::bindings::utils::{QName, Name, InvalidXMLName, xml_name_type};
@@ -51,7 +50,7 @@ pub struct Element {
pub namespace: Namespace,
pub prefix: Option<DOMString>,
pub attrs: RefCell<Vec<JS<Attr>>>,
- pub style_attribute: Traceable<RefCell<Option<style::PropertyDeclarationBlock>>>,
+ pub style_attribute: RefCell<Option<style::PropertyDeclarationBlock>>,
pub attr_list: MutNullableJS<NamedNodeMap>,
class_list: MutNullableJS<DOMTokenList>,
}
@@ -159,7 +158,7 @@ impl Element {
attrs: RefCell::new(vec!()),
attr_list: Default::default(),
class_list: Default::default(),
- style_attribute: Traceable::new(RefCell::new(None)),
+ style_attribute: RefCell::new(None),
}
}
@@ -851,7 +850,7 @@ impl<'a> VirtualMethods for JSRef<'a, Element> {
let doc = document_from_node(*self).root();
let base_url = doc.deref().url().clone();
let style = Some(style::parse_style_attribute(value.as_slice(), &base_url));
- *self.deref().style_attribute.deref().borrow_mut() = style;
+ *self.deref().style_attribute.borrow_mut() = style;
}
"id" => {
let node: JSRef<Node> = NodeCast::from_ref(*self);
@@ -875,7 +874,7 @@ impl<'a> VirtualMethods for JSRef<'a, Element> {
match name.as_slice() {
"style" => {
- *self.deref().style_attribute.deref().borrow_mut() = None;
+ *self.deref().style_attribute.borrow_mut() = None;
}
"id" => {
let node: JSRef<Node> = NodeCast::from_ref(*self);