From 4460712a8f00772f60ed066caa1e9471e8fc19a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 29 Mar 2016 03:32:57 +0200 Subject: layout: Propagate selected_style to InlineFragmentNodeInfo --- components/layout/construct.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/layout/construct.rs') diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 6d9c1f29766..d9727e5c8d9 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -217,6 +217,7 @@ impl InlineFragmentsAccumulator { address: node.opaque(), pseudo: node.get_pseudo_element_type().strip(), style: node.style().clone(), + selected_style: node.selected_style().clone(), flags: InlineFragmentNodeFlags::empty(), }), bidi_control_chars: None, @@ -1867,8 +1868,7 @@ fn control_chars_to_fragment(node: &InlineFragmentNodeInfo, Fragment::from_opaque_node_and_style(node.address, node.pseudo, style.clone(), - // TODO(emilio): Selected style? - style, + node.selected_style.clone(), restyle_damage, info) } -- cgit v1.2.3