diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2018-02-14 13:57:59 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-02-16 16:01:46 -0800 |
commit | db6ec58e6b971aa040739f0dc77701c02a889e1c (patch) | |
tree | 8c2d8c0b76e51dd3d597e7a9f0b5d2939df76bc4 /components/layout/display_list/builder.rs | |
parent | 62328466990e3ea436e5d05486eb26bc4ce0d799 (diff) | |
download | servo-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/display_list/builder.rs')
-rw-r--r-- | components/layout/display_list/builder.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/components/layout/display_list/builder.rs b/components/layout/display_list/builder.rs index c1bbfe70a72..d391fbcbb1a 100644 --- a/components/layout/display_list/builder.rs +++ b/components/layout/display_list/builder.rs @@ -2330,6 +2330,12 @@ pub trait BlockFlowDisplayListBuilding { border_painting_mode: BorderPaintingMode, ); + fn build_display_list_for_background_if_applicable_with_background( + &self, + state: &mut DisplayListBuildState, + background: &style_structs::Background, + background_color: RGBA); + fn block_stacking_context_type( &self, flags: StackingContextCollectionFlags, @@ -2892,6 +2898,22 @@ impl BlockFlowDisplayListBuilding for BlockFlow { state.processing_scrolling_overflow_element = false; } + fn build_display_list_for_background_if_applicable_with_background( + &self, + state: &mut DisplayListBuildState, + background: &style_structs::Background, + background_color: RGBA) { + let stacking_relative_border_box = + self.base.stacking_relative_border_box_for_display_list(&self.fragment); + let background_border_section = self.background_border_section(); + + self.fragment.build_display_list_for_background_if_applicable_with_background( + state, self.fragment.style(), background, background_color, + background_border_section, &stacking_relative_border_box + ) + + } + #[inline] fn block_stacking_context_type( &self, |