mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
style: Remove TNode::set_can_be_fragmented and TNode::can_be_fragmented.
Replace them instead by a computed value flag, the same way as the IS_IN_DISPLAY_NONE_SUBTREE flag works.
This commit is contained in:
parent
10a1e1e15f
commit
f3ea248188
13 changed files with 46 additions and 81 deletions
|
@ -104,6 +104,15 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
self.style.is_pseudo_element() {
|
||||
self.style.flags.insert(ComputedValueFlags::IS_IN_PSEUDO_ELEMENT_SUBTREE);
|
||||
}
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
{
|
||||
if self.style.inherited_flags().contains(ComputedValueFlags::CAN_BE_FRAGMENTED) ||
|
||||
self.style.get_parent_column().is_multicol()
|
||||
{
|
||||
self.style.flags.insert(ComputedValueFlags::CAN_BE_FRAGMENTED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Adjust the style for text style.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue