diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-11-22 11:12:35 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-11-22 11:12:35 -0700 |
commit | e38e20da6500184df19654abe34322dd3c2fd99b (patch) | |
tree | 32759de11a670738b8a5648c0f50365b4bb81cb1 | |
parent | e6e73b8da70a6acaeabc1abf13071d044996f103 (diff) | |
parent | 95b57f55cd9654c290652aa04031a4f192b5db48 (diff) | |
download | servo-e38e20da6500184df19654abe34322dd3c2fd99b.tar.gz servo-e38e20da6500184df19654abe34322dd3c2fd99b.zip |
auto merge of #4066 : pcwalton/servo/float-incremental-layout-fix, r=cgaebel,cgaebel,cgaebel
Fixes the maze solver.
r? @larsbergstrom (or anyone)
-rw-r--r-- | components/layout/block.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs index 8d2438de783..cdbd5540f53 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -1264,8 +1264,10 @@ impl BlockFlow { content_inline_size: Au, optional_column_inline_sizes: Option<&[ColumnInlineSize]>) { // Keep track of whether floats could impact each child. - let mut inline_start_floats_impact_child = self.base.flags.contains(IMPACTED_BY_LEFT_FLOATS); - let mut inline_end_floats_impact_child = self.base.flags.contains(IMPACTED_BY_RIGHT_FLOATS); + let mut inline_start_floats_impact_child = + self.base.flags.contains(IMPACTED_BY_LEFT_FLOATS); + let mut inline_end_floats_impact_child = + self.base.flags.contains(IMPACTED_BY_RIGHT_FLOATS); let absolute_static_i_offset = if self.is_positioned() { // This flow is the containing block. The static inline offset will be the inline-start @@ -1332,7 +1334,7 @@ impl BlockFlow { // and its inline-size is our content inline-size. { let kid_base = flow::mut_base(kid); - if !kid_base.flags.contains(IS_ABSOLUTELY_POSITIONED) || + if !kid_base.flags.contains(IS_ABSOLUTELY_POSITIONED) && !kid_base.flags.is_float() { kid_base.position.start.i = inline_start_content_edge } |