aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/traversal.rs
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2015-11-03 15:49:52 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2015-11-03 20:10:06 +1000
commit695b7491fea505aad1179915b56a1fc295ccd9c3 (patch)
tree9577ffcf9de86288cbf29ee4f7f47307f14c6085 /components/layout/traversal.rs
parent4f51710ed387baa1ad0a6e4cdb0fc5eee44093d5 (diff)
downloadservo-695b7491fea505aad1179915b56a1fc295ccd9c3.tar.gz
servo-695b7491fea505aad1179915b56a1fc295ccd9c3.zip
Change overflow calculation to be calculated after compute_absolute_position.
Also include absolutely positioned elements in the overflow rect calculation. Fixes #7797.
Diffstat (limited to 'components/layout/traversal.rs')
-rw-r--r--components/layout/traversal.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs
index d833c240d63..34427b9d8d9 100644
--- a/components/layout/traversal.rs
+++ b/components/layout/traversal.rs
@@ -7,7 +7,7 @@
use construct::FlowConstructor;
use context::LayoutContext;
use css::matching::{ApplicableDeclarations, ElementMatchMethods, MatchMethods, StyleSharingResult};
-use flow::{MutableFlowUtils, PostorderFlowTraversal, PreorderFlowTraversal};
+use flow::{PostorderFlowTraversal, PreorderFlowTraversal};
use flow::{self, Flow};
use gfx::display_list::OpaqueNode;
use incremental::{self, BUBBLE_ISIZES, REFLOW, REFLOW_OUT_OF_FLOW, RestyleDamage};
@@ -360,7 +360,6 @@ impl<'a> PostorderFlowTraversal for AssignBSizesAndStoreOverflow<'a> {
}
flow.assign_block_size(self.layout_context);
- flow.early_store_overflow(self.layout_context);
}
#[inline]
@@ -378,6 +377,7 @@ impl<'a> PreorderFlowTraversal for ComputeAbsolutePositions<'a> {
#[inline]
fn process(&self, flow: &mut Flow) {
flow.compute_absolute_position(self.layout_context);
+ flow.store_overflow(self.layout_context);
}
}