aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_row.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-02-14 13:57:59 -0800
committerManish Goregaokar <manishsmail@gmail.com>2018-02-16 16:01:46 -0800
commitdb6ec58e6b971aa040739f0dc77701c02a889e1c (patch)
tree8c2d8c0b76e51dd3d597e7a9f0b5d2939df76bc4 /components/layout/table_row.rs
parent62328466990e3ea436e5d05486eb26bc4ce0d799 (diff)
downloadservo-db6ec58e6b971aa040739f0dc77701c02a889e1c.tar.gz
servo-db6ec58e6b971aa040739f0dc77701c02a889e1c.zip
Generate display lists for table cells during display list generation for their table parent
Diffstat (limited to 'components/layout/table_row.rs')
-rw-r--r--components/layout/table_row.rs18
1 files changed, 4 insertions, 14 deletions
diff --git a/components/layout/table_row.rs b/components/layout/table_row.rs
index a1c91417cd7..be83f6321e3 100644
--- a/components/layout/table_row.rs
+++ b/components/layout/table_row.rs
@@ -9,9 +9,8 @@
use app_units::Au;
use block::{BlockFlow, ISizeAndMarginsComputer};
use context::LayoutContext;
-use display_list::{BlockFlowDisplayListBuilding, BorderPaintingMode};
-use display_list::{DisplayListBuildState, StackingContextCollectionFlags};
-use display_list::StackingContextCollectionState;
+use display_list::{BlockFlowDisplayListBuilding, DisplayListBuildState};
+use display_list::{StackingContextCollectionFlags, StackingContextCollectionState};
use euclid::Point2D;
use flow::{EarlyAbsolutePositionInfo, Flow, FlowClass, ImmutableFlowUtils, GetBaseFlow, OpaqueFlow};
use flow_list::MutFlowListIterator;
@@ -467,17 +466,8 @@ impl Flow for TableRowFlow {
self.block_flow.update_late_computed_block_position_if_necessary(block_position)
}
- fn build_display_list(&mut self, state: &mut DisplayListBuildState) {
- let border_painting_mode = match self.block_flow
- .fragment
- .style
- .get_inheritedtable()
- .border_collapse {
- BorderCollapse::Separate => BorderPaintingMode::Separate,
- BorderCollapse::Collapse => BorderPaintingMode::Hidden,
- };
-
- self.block_flow.build_display_list_for_block(state, border_painting_mode);
+ fn build_display_list(&mut self, _: &mut DisplayListBuildState) {
+ // handled in TableCellStyleInfo::build_display_list
}
fn collect_stacking_contexts(&mut self, state: &mut StackingContextCollectionState) {