Skip to content

Commit

Permalink
change position of setting inline_data for "<span>asdf<div>b</div></s…
Browse files Browse the repository at this point in the history
…pan>" case
  • Loading branch information
ksh8281 committed Jan 23, 2014
1 parent b0380ae commit 815d222
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/components/main/layout/construct.rs
Expand Up @@ -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 => {}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 815d222

Please sign in to comment.