aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-05-17 15:12:18 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-05-17 16:32:30 +0200
commite8d1c5316d542e0ab4ccb110b60ff092f317585f (patch)
tree71eff967ac4b3088b21f0ec6e057be8d3e4406c9 /components/script/layout_wrapper.rs
parent837531992864f920342020462830b933d5ed0280 (diff)
downloadservo-e8d1c5316d542e0ab4ccb110b60ff092f317585f.tar.gz
servo-e8d1c5316d542e0ab4ccb110b60ff092f317585f.zip
style: Refactor the cascade function.
The `cascade_primary_or_pseudo` function was nice when we shared more code, but right now I think it just makes it harder to understand what's going on.
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r--components/script/layout_wrapper.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs
index 7802d446114..9e7368f5e6a 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -404,9 +404,9 @@ impl<'le> TElement for ServoLayoutElement<'le> {
#[inline]
fn existing_style_for_restyle_damage<'a>(&'a self,
- current_cv: &'a Arc<ComputedValues>,
+ current_cv: &'a ComputedValues,
_pseudo_element: Option<&PseudoElement>)
- -> Option<&'a Arc<ComputedValues>> {
+ -> Option<&'a ComputedValues> {
Some(current_cv)
}