mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix text-decoration for block containers in layout-2020
It was only applied to the 1st inline formatting context of a block container. Other IFCs were created with the Default trait, implying TextDecorationLine::NONE.
This commit is contained in:
parent
ff2222ecd5
commit
2692426103
5 changed files with 76 additions and 4 deletions
|
@ -712,10 +712,13 @@ where
|
|||
)
|
||||
});
|
||||
|
||||
let mut ifc = InlineFormattingContext::new(
|
||||
self.ongoing_inline_formatting_context.text_decoration_line,
|
||||
/* has_first_formatted_line = */ false,
|
||||
);
|
||||
std::mem::swap(&mut self.ongoing_inline_formatting_context, &mut ifc);
|
||||
let kind = BlockLevelCreator::SameFormattingContextBlock(
|
||||
IntermediateBlockContainer::InlineFormattingContext(std::mem::take(
|
||||
&mut self.ongoing_inline_formatting_context,
|
||||
)),
|
||||
IntermediateBlockContainer::InlineFormattingContext(ifc),
|
||||
);
|
||||
let info = self.info.new_replacing_style(anonymous_style.clone());
|
||||
self.block_level_boxes.push(BlockLevelJob {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue