mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Use internal mutability for Attr::value.
This commit is contained in:
parent
f6294a67c5
commit
c90a8529c5
8 changed files with 35 additions and 25 deletions
|
@ -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())
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue