Auto merge of #25847 - ferjm:issue.25709, r=SimonSapin

Properly position atomic inline level boxes

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25709
This commit is contained in:
bors-servo 2020-02-27 13:34:09 -05:00 committed by GitHub
commit 756cf66cd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
163 changed files with 19 additions and 319 deletions

View file

@ -567,7 +567,10 @@ fn layout_atomic<'box_tree>(
},
};
ifc.inline_position += pbm.inline_end;
ifc.inline_position += pbm.inline_end + fragment.content_rect.size.inline;
ifc.current_nesting_level
.max_block_size_of_fragments_so_far
.max_assign(pbm.block_sum() + fragment.content_rect.size.block);
ifc.current_nesting_level
.fragments_so_far
.push(Fragment::Box(fragment));