mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
change position of setting inline_data for "<span>asdf<div>b</div></span>" case
This commit is contained in:
parent
b0380ae96a
commit
815d222e00
1 changed files with 4 additions and 8 deletions
|
@ -407,8 +407,11 @@ impl<'fc> FlowConstructor<'fc> {
|
|||
ConstructionItemConstructionResult(InlineBoxesConstructionItem(
|
||||
InlineBoxesConstructionResult {
|
||||
splits: opt_splits,
|
||||
boxes: boxes
|
||||
boxes: mut boxes
|
||||
})) => {
|
||||
// fill inline info
|
||||
self.set_inline_info_for_inline_child(&mut boxes, node);
|
||||
|
||||
// Bubble up {ib} splits.
|
||||
match opt_splits {
|
||||
None => {}
|
||||
|
@ -436,13 +439,6 @@ impl<'fc> FlowConstructor<'fc> {
|
|||
}
|
||||
}
|
||||
|
||||
match opt_box_accumulator {
|
||||
Some(ref mut boxes) => {
|
||||
self.set_inline_info_for_inline_child(boxes, node)
|
||||
},
|
||||
None => {}
|
||||
}
|
||||
|
||||
// Finally, make a new construction result.
|
||||
if opt_inline_block_splits.len() > 0 || opt_box_accumulator.len() > 0 {
|
||||
let construction_item = InlineBoxesConstructionItem(InlineBoxesConstructionResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue