diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-06-08 14:35:55 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-06-08 17:09:22 +0200 |
commit | efe69f3a828efe3452bca356ece0393dd1cf1ed3 (patch) | |
tree | 72f39c8c24aae9c49f585ae24cfaf5c08a1e1afb /src/components/script/dom/node.rs | |
parent | 743dcee0f59d63bfbb820df2412c8e2267b38f66 (diff) | |
download | servo-efe69f3a828efe3452bca356ece0393dd1cf1ed3.tar.gz servo-efe69f3a828efe3452bca356ece0393dd1cf1ed3.zip |
Make Attr::value private.
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r-- | src/components/script/dom/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs index e98ee029bb4..91e666d1e61 100644 --- a/src/components/script/dom/node.rs +++ b/src/components/script/dom/node.rs @@ -1300,7 +1300,7 @@ impl Node { for attr in node_elem.attrs.borrow().iter().map(|attr| attr.root()) { copy_elem.attrs.borrow_mut().push_unrooted( &Attr::new(&*window, - attr.deref().local_name.clone(), attr.deref().value.clone(), + attr.deref().local_name.clone(), attr.deref().value_ref().to_string(), attr.deref().name.clone(), attr.deref().namespace.clone(), attr.deref().prefix.clone(), ©_elem_alias)); } @@ -1792,7 +1792,7 @@ impl<'a> NodeMethods for JSRef<'a, Node> { other_element.attrs.borrow().iter().map(|attr| attr.root()).any(|other_attr| { (attr.namespace == other_attr.namespace) && (attr.local_name == other_attr.local_name) && - (attr.value == other_attr.value) + (attr.deref().value_ref() == other_attr.deref().value_ref()) }) }) } |