servo: Merge #2785 - Make pseudo :before and :after elements inherit style from attached (from glennw:content-font-size)

Source-Repo: https://github.com/servo/servo
Source-Revision: a9e54575886f22383c8da40a4885db87abb7bbdb
This commit is contained in:
Glenn Watson 2014-07-08 18:23:16 +01:00
Родитель 88b6906c60
Коммит d3836cc81b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -553,14 +553,14 @@ impl<'ln> MatchMethods for LayoutNode<'ln> {
applicable_declarations_cache,
applicable_declarations.normal_shareable);
if applicable_declarations.before.len() > 0 {
self.cascade_node_pseudo_element(parent_style,
self.cascade_node_pseudo_element(Some(layout_data.shared_data.style.get_ref()),
applicable_declarations.before.as_slice(),
&mut layout_data.data.before_style,
applicable_declarations_cache,
false);
}
if applicable_declarations.after.len() > 0 {
self.cascade_node_pseudo_element(parent_style,
self.cascade_node_pseudo_element(Some(layout_data.shared_data.style.get_ref()),
applicable_declarations.after.as_slice(),
&mut layout_data.data.after_style,
applicable_declarations_cache,