mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01: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(),
|
address: node.opaque(),
|
||||||
pseudo: node.get_pseudo_element_type().strip(),
|
pseudo: node.get_pseudo_element_type().strip(),
|
||||||
style: node.style().clone(),
|
style: node.style().clone(),
|
||||||
|
selected_style: node.selected_style().clone(),
|
||||||
flags: InlineFragmentNodeFlags::empty(),
|
flags: InlineFragmentNodeFlags::empty(),
|
||||||
}),
|
}),
|
||||||
bidi_control_chars: None,
|
bidi_control_chars: None,
|
||||||
|
@ -1867,8 +1868,7 @@ fn control_chars_to_fragment(node: &InlineFragmentNodeInfo,
|
||||||
Fragment::from_opaque_node_and_style(node.address,
|
Fragment::from_opaque_node_and_style(node.address,
|
||||||
node.pseudo,
|
node.pseudo,
|
||||||
style.clone(),
|
style.clone(),
|
||||||
// TODO(emilio): Selected style?
|
node.selected_style.clone(),
|
||||||
style,
|
|
||||||
restyle_damage,
|
restyle_damage,
|
||||||
info)
|
info)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1854,6 +1854,7 @@ impl fmt::Debug for InlineFlow {
|
||||||
pub struct InlineFragmentNodeInfo {
|
pub struct InlineFragmentNodeInfo {
|
||||||
pub address: OpaqueNode,
|
pub address: OpaqueNode,
|
||||||
pub style: Arc<ServoComputedValues>,
|
pub style: Arc<ServoComputedValues>,
|
||||||
|
pub selected_style: Arc<ServoComputedValues>,
|
||||||
pub pseudo: PseudoElementType<()>,
|
pub pseudo: PseudoElementType<()>,
|
||||||
pub flags: InlineFragmentNodeFlags,
|
pub flags: InlineFragmentNodeFlags,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue