aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/node.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2015-06-18 01:04:20 +0200
committerSimon Sapin <simon.sapin@exyr.org>2015-06-20 07:05:43 +0200
commitfc25397c91538eb2bd263170feb79cc97fcfd4de (patch)
treeec43c9d03e01a3634c089c3e9eaa37a7da0eaa40 /components/style/node.rs
parent72ead882c08fbd66d59457efd1ebf86ee4ee97f2 (diff)
downloadservo-fc25397c91538eb2bd263170feb79cc97fcfd4de.tar.gz
servo-fc25397c91538eb2bd263170feb79cc97fcfd4de.zip
Update rust-selectors
https://github.com/servo/rust-selectors/pull/30
Diffstat (limited to 'components/style/node.rs')
-rw-r--r--components/style/node.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/style/node.rs b/components/style/node.rs
index 7bcf62436dd..633bbda591f 100644
--- a/components/style/node.rs
+++ b/components/style/node.rs
@@ -13,11 +13,11 @@ use selectors::matching::DeclarationBlock;
pub use selectors::tree::{TNode, TElement};
use string_cache::{Atom, Namespace};
-pub trait TElementAttributes<'a> : Copy {
- fn synthesize_presentational_hints_for_legacy_attributes<V>(self, &mut V)
+pub trait TElementAttributes {
+ fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, &mut V)
where V: VecLike<DeclarationBlock<Vec<PropertyDeclaration>>>;
- fn get_unsigned_integer_attribute(self, attribute: UnsignedIntegerAttribute) -> Option<u32>;
+ fn get_unsigned_integer_attribute(&self, attribute: UnsignedIntegerAttribute) -> Option<u32>;
- fn get_attr(self, namespace: &Namespace, attr: &Atom) -> Option<&'a str>;
- fn get_attrs(self, attr: &Atom) -> Vec<&'a str>;
+ fn get_attr<'a>(&'a self, namespace: &Namespace, attr: &Atom) -> Option<&'a str>;
+ fn get_attrs<'a>(&'a self, attr: &Atom) -> Vec<&'a str>;
}