mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
layout: Take the position of InlineFlow
s in account when determining
the baseline offset of the last line box in flow. This caused incorrect layouts in some cases.
This commit is contained in:
parent
1996045343
commit
7bf06ed459
1 changed files with 1 additions and 1 deletions
|
@ -1401,7 +1401,7 @@ impl<'a> ImmutableFlowUtils for &'a Flow {
|
|||
for kid in base(self).children.iter().rev() {
|
||||
if kid.is_inline_flow() {
|
||||
if let Some(baseline_offset) = kid.as_inline().baseline_offset_of_last_line() {
|
||||
return Some(baseline_offset)
|
||||
return Some(base(kid).position.start.b + baseline_offset)
|
||||
}
|
||||
}
|
||||
if kid.is_block_like() &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue