Use internal mutability for Attr::value.

This commit is contained in:
Ms2ger 2014-06-12 10:00:18 +02:00 committed by Tetsuharu OHZEKI
parent f6294a67c5
commit c90a8529c5
8 changed files with 35 additions and 25 deletions

View file

@ -1814,7 +1814,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.deref().value_ref() == other_attr.deref().value_ref())
(attr.deref().value().as_slice() == other_attr.deref().value().as_slice())
})
})
}