aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/css
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-02-12 18:58:38 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-12 18:58:38 +0100
commit2b0eb98c1d0889d7966b2341528417cb3f916911 (patch)
tree337f4305f1a2012ac205b065c4908272e6d21a7a /components/layout/css
parent31f65959818751ab0dadc18acb5a90357067c9a4 (diff)
downloadservo-2b0eb98c1d0889d7966b2341528417cb3f916911.tar.gz
servo-2b0eb98c1d0889d7966b2341528417cb3f916911.zip
Fix some warnings in layout.
Diffstat (limited to 'components/layout/css')
-rw-r--r--components/layout/css/matching.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/css/matching.rs b/components/layout/css/matching.rs
index bc096e7728d..31c14804d6b 100644
--- a/components/layout/css/matching.rs
+++ b/components/layout/css/matching.rs
@@ -71,7 +71,7 @@ impl ApplicableDeclarationsCacheEntry {
impl PartialEq for ApplicableDeclarationsCacheEntry {
fn eq(&self, other: &ApplicableDeclarationsCacheEntry) -> bool {
- let this_as_query = ApplicableDeclarationsCacheQuery::new(self.declarations.as_slice());
+ let this_as_query = ApplicableDeclarationsCacheQuery::new(&*self.declarations);
this_as_query.eq(other)
}
}
@@ -79,7 +79,7 @@ impl Eq for ApplicableDeclarationsCacheEntry {}
impl<H: Hasher+Writer> Hash<H> for ApplicableDeclarationsCacheEntry {
fn hash(&self, state: &mut H) {
- let tmp = ApplicableDeclarationsCacheQuery::new(self.declarations.as_slice());
+ let tmp = ApplicableDeclarationsCacheQuery::new(&*self.declarations);
tmp.hash(state);
}
}
@@ -643,7 +643,7 @@ impl<'ln> MatchMethods for LayoutNode<'ln> {
if applicable_declarations.before.len() > 0 {
damage = damage | self.cascade_node_pseudo_element(
Some(layout_data.shared_data.style.as_ref().unwrap()),
- applicable_declarations.before.as_slice(),
+ &*applicable_declarations.before,
&mut layout_data.data.before_style,
applicable_declarations_cache,
false);
@@ -651,7 +651,7 @@ impl<'ln> MatchMethods for LayoutNode<'ln> {
if applicable_declarations.after.len() > 0 {
damage = damage | self.cascade_node_pseudo_element(
Some(layout_data.shared_data.style.as_ref().unwrap()),
- applicable_declarations.after.as_slice(),
+ &*applicable_declarations.after,
&mut layout_data.data.after_style,
applicable_declarations_cache,
false);