From c8b5b5b9c8003a2f072534724825d9b06e812ccc Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 24 Mar 2015 17:04:44 -0700 Subject: [PATCH] Don't add margin/border/padding twice to position I think this should have been changed in #3618 but was missed. --- components/layout/block.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/layout/block.rs b/components/layout/block.rs index 9c8ae1a19d6..654644828c4 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -1453,9 +1453,7 @@ impl BlockFlow { let info = PlacementInfo { size: LogicalSize::new(self.fragment.style.writing_mode, - self.base.position.size.inline + - self.fragment.margin.inline_start_end() + - self.fragment.border_padding.inline_start_end(), + self.base.position.size.inline, self.fragment.border_box.size.block), ceiling: self.base.position.start.b, max_inline_size: MAX_AU,