mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout: Propagate selected_style to InlineFragmentNodeInfo
This commit is contained in:
parent
359f7b7953
commit
4460712a8f
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue