aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/display_list/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/display_list/builder.rs')
-rw-r--r--components/layout/display_list/builder.rs22
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,