diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-04-04 17:29:23 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-04-06 14:31:27 +0200 |
commit | 254207730e75f036d6f5182cdb37b230b47a101f (patch) | |
tree | 613c8e3f8e29a761626b8153847d54c47df3d607 /components/script/dom/node.rs | |
parent | dd88bcddc4ab0f4f774ee8e3e5785ed8a7a96c64 (diff) | |
download | servo-254207730e75f036d6f5182cdb37b230b47a101f.tar.gz servo-254207730e75f036d6f5182cdb37b230b47a101f.zip |
Make Element::get_attribute() take its namespace by reference
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index f9b81cad136..564777e0560 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -2343,7 +2343,7 @@ impl<'a> style::node::TNode<'a> for JSRef<'a, Node> { }; match attr.namespace { NamespaceConstraint::Specific(ref ns) => { - self.as_element().get_attribute(ns.clone(), name).root() + self.as_element().get_attribute(ns, name).root() .map_or(false, |attr| { // FIXME(https://github.com/rust-lang/rust/issues/23338) let attr = attr.r(); |