aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table.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/table.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/table.rs')
-rw-r--r--components/layout/table.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/layout/table.rs b/components/layout/table.rs
index 62b8807de07..c3d7ec137d9 100644
--- a/components/layout/table.rs
+++ b/components/layout/table.rs
@@ -12,7 +12,7 @@ use block::{self, BlockFlow, CandidateBSizeIterator, ISizeAndMarginsComputer};
use context::LayoutContext;
use display_list_builder::{BlockFlowDisplayListBuilding, BorderPaintingMode};
use euclid::{Point2D, Rect};
-use flow::{IMPACTED_BY_RIGHT_FLOATS, ImmutableFlowUtils, MutableFlowUtils, OpaqueFlow};
+use flow::{IMPACTED_BY_RIGHT_FLOATS, ImmutableFlowUtils, OpaqueFlow};
use flow::{self, EarlyAbsolutePositionInfo, Flow, FlowClass, IMPACTED_BY_LEFT_FLOATS};
use fragment::{Fragment, FragmentBorderBoxIterator};
use gfx::display_list::DisplayList;
@@ -762,7 +762,7 @@ pub trait TableLikeFlow {
impl TableLikeFlow for BlockFlow {
fn assign_block_size_for_table_like_flow<'a>(&mut self,
- layout_context: &'a LayoutContext<'a>,
+ _: &'a LayoutContext<'a>,
block_direction_spacing: Au) {
debug_assert!(self.fragment.style.get_inheritedtable().border_collapse ==
border_collapse::T::separate || block_direction_spacing == Au(0));
@@ -842,7 +842,6 @@ impl TableLikeFlow for BlockFlow {
relative_containing_block_size: self.fragment.content_box().size,
relative_containing_block_mode: self.fragment.style().writing_mode,
};
- kid.late_store_overflow(layout_context)
}
}