mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Auto merge of #10655 - mbrubeck:merge-margin, r=SimonSapin
Update margins when merging inline fragments Fixes #10633. r? @pcwalton <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10655) <!-- Reviewable:end -->
This commit is contained in:
commit
fd994c457e
4 changed files with 34 additions and 0 deletions
|
@ -1728,6 +1728,7 @@ impl Fragment {
|
|||
this_info.insertion_point = other_info.insertion_point;
|
||||
}
|
||||
self.border_padding.inline_end = next_fragment.border_padding.inline_end;
|
||||
self.margin.inline_end = next_fragment.margin.inline_end;
|
||||
}
|
||||
_ => panic!("Can only merge two scanned-text fragments!"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue