Include padding in ascent reported for <img>

fixes #6452
This commit is contained in:
David Winslow 2015-07-06 15:08:19 -04:00
parent c022262826
commit 261711d51a
2 changed files with 2 additions and 2 deletions

View file

@ -1352,7 +1352,7 @@ impl<'a> PostorderNodeMutTraversal for FlowConstructor<'a> {
}
};
debug!("building flow for node: {:?} {:?} {:?}", display, float, node.type_id());
debug!("building flow for node: {:?} {:?} {:?} {:?}", display, float, positioning, node.type_id());
// Switch on display and floatedness.
match (display, float, positioning) {

View file

@ -1802,7 +1802,7 @@ impl Fragment {
block_size_above_baseline: computed_block_size +
self.border_padding.block_start_end(),
depth_below_baseline: Au(0),
ascent: computed_block_size + self.border_padding.block_end,
ascent: computed_block_size + self.border_padding.block_start_end(),
}
}
SpecificFragmentInfo::ScannedText(ref text_fragment) => {