mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Generate display lists for table cells during display list generation for their table parent
This commit is contained in:
parent
6232846699
commit
db6ec58e6b
5 changed files with 83 additions and 38 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue