mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Don't add margin/border/padding twice to position
I think this should have been changed in #3618 but was missed.
This commit is contained in:
parent
531bcb12ae
commit
c8b5b5b9c8
1 changed files with 1 additions and 3 deletions
|
@ -1453,9 +1453,7 @@ impl BlockFlow {
|
||||||
|
|
||||||
let info = PlacementInfo {
|
let info = PlacementInfo {
|
||||||
size: LogicalSize::new(self.fragment.style.writing_mode,
|
size: LogicalSize::new(self.fragment.style.writing_mode,
|
||||||
self.base.position.size.inline +
|
self.base.position.size.inline,
|
||||||
self.fragment.margin.inline_start_end() +
|
|
||||||
self.fragment.border_padding.inline_start_end(),
|
|
||||||
self.fragment.border_box.size.block),
|
self.fragment.border_box.size.block),
|
||||||
ceiling: self.base.position.start.b,
|
ceiling: self.base.position.start.b,
|
||||||
max_inline_size: MAX_AU,
|
max_inline_size: MAX_AU,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue