aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2015-03-24 17:04:44 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2015-03-24 17:04:44 -0700
commitc8b5b5b9c8003a2f072534724825d9b06e812ccc (patch)
tree8cae8cbee284da03fd171c1b2a1211928549f3b8
parent531bcb12aeceede095a973861d3a77c2a4cdf28f (diff)
downloadservo-c8b5b5b9c8003a2f072534724825d9b06e812ccc.tar.gz
servo-c8b5b5b9c8003a2f072534724825d9b06e812ccc.zip
Don't add margin/border/padding twice to position
I think this should have been changed in #3618 but was missed.
-rw-r--r--components/layout/block.rs4
1 files changed, 1 insertions, 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,