diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-01-26 00:20:26 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-01-26 00:20:26 +0530 |
commit | 4755cc5c6211e845fc8081cb3c8a67b4bdbea5cc (patch) | |
tree | 3f8ae4849ca0109a213a9135d8dbf7c3fa3085db /components | |
parent | 842ec7c41566c478c07e30c10f330f9f8595eadd (diff) | |
parent | 9c7b9fa32d43c51acadd7bb408ba94161aadb4e6 (diff) | |
download | servo-4755cc5c6211e845fc8081cb3c8a67b4bdbea5cc.tar.gz servo-4755cc5c6211e845fc8081cb3c8a67b4bdbea5cc.zip |
Auto merge of #9405 - pcwalton:absolute-positioning-overflow, r=glennw
layout: Remove some bogus code that tried to handle absolutely-positioned flows separately when storing overflow.
This code dates back to the time when absolutely positioned flows were
ignored by all of their ancestors up to the containing block. This
hasn't been true for at least a year.
Closes #9306.
Closes #9309.
Is a partial fix for #9308.
r? @glennw
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9405)
<!-- Reviewable:end -->
Diffstat (limited to 'components')
-rw-r--r-- | components/layout/flow.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs index bfb0c407d95..2df03d43233 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -251,13 +251,6 @@ pub trait Flow: fmt::Debug + Sync + Send + 'static { container_size); overflow = overflow.union(&kid_overflow.translate(&kid_position.origin)) } - - for kid in mut_base(self).abs_descendants.iter() { - let kid_overflow = base(kid).overflow; - let kid_position = base(kid).position.to_physical(base(kid).writing_mode, - container_size); - overflow = overflow.union(&kid_overflow.translate(&kid_position.origin)) - } } _ => {} } |