layout: Propagate selected_style to InlineFragmentNodeInfo

This commit is contained in:
Emilio Cobos Álvarez 2016-03-29 03:32:57 +02:00
parent 359f7b7953
commit 4460712a8f
2 changed files with 3 additions and 2 deletions

View file

@ -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)
}