diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2016-10-24 18:00:06 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2016-10-26 14:14:01 -0700 |
commit | fb2d1e1020429e883958e2ad64c3dc6b018ba38a (patch) | |
tree | 281c9b6dc47106dc0b44959ec5d52d6eea7fd214 /components/script_layout_interface/wrapper_traits.rs | |
parent | 93e41ba4aabfaa10b1e9cb7cb5baf29dbc482fe9 (diff) | |
download | servo-fb2d1e1020429e883958e2ad64c3dc6b018ba38a.tar.gz servo-fb2d1e1020429e883958e2ad64c3dc6b018ba38a.zip |
layout: Add a new cascading mode that inherits all properties, even
non-inheritable ones.
This works like the `modify_style_for_*` functions and will allow us to
easily migrate from them to real cascading.
Diffstat (limited to 'components/script_layout_interface/wrapper_traits.rs')
-rw-r--r-- | components/script_layout_interface/wrapper_traits.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index 5526c449247..5ea15926f97 100644 --- a/components/script_layout_interface/wrapper_traits.rs +++ b/components/script_layout_interface/wrapper_traits.rs @@ -265,9 +265,10 @@ pub trait ThreadSafeLayoutNode: Clone + Copy + NodeInfo + PartialEq + Sized { .current_styles().pseudos.contains_key(&style_pseudo) { let mut data = self.get_style_data().unwrap().borrow_mut(); let new_style = - context.stylist - .precomputed_values_for_pseudo(&style_pseudo, - Some(&data.current_styles().primary)); + context.stylist.precomputed_values_for_pseudo( + &style_pseudo, + Some(&data.current_styles().primary), + false); data.current_pseudos_mut() .insert(style_pseudo.clone(), new_style.unwrap()); } |