diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2017-02-09 16:55:16 -0800 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2017-02-10 10:34:28 -0800 |
commit | 1f4f099efe89aacf9d1b520f41644832d560360e (patch) | |
tree | 810e601efe0cea68484d3545b9e5f52ebf21b383 /components/script/layout_wrapper.rs | |
parent | 0e3aeac9222262ce33d20ad0f2311e49d7dd59af (diff) | |
download | servo-1f4f099efe89aacf9d1b520f41644832d560360e.tar.gz servo-1f4f099efe89aacf9d1b520f41644832d560360e.zip |
Clean up and simplify the accumulation of restyle damage.
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r-- | components/script/layout_wrapper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 43068100b16..000a844bc16 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -393,10 +393,10 @@ impl<'le> TElement for ServoLayoutElement<'le> { #[inline] fn existing_style_for_restyle_damage<'a>(&'a self, - current_cv: Option<&'a Arc<ComputedValues>>, + current_cv: &'a Arc<ComputedValues>, _pseudo_element: Option<&PseudoElement>) -> Option<&'a Arc<ComputedValues>> { - current_cv + Some(current_cv) } fn has_dirty_descendants(&self) -> bool { |