Create a solid rectangle display list entry for the page background.

This commit is contained in:
Josh Matthews 2019-06-10 17:09:44 -04:00
parent e57e2121b2
commit 10ab466e5d
4 changed files with 37 additions and 11 deletions

View file

@ -345,7 +345,7 @@ impl<'a> DisplayListBuildState<'a> {
}
}
fn add_display_item(&mut self, display_item: DisplayItem) {
pub fn add_display_item(&mut self, display_item: DisplayItem) {
let items = self
.items
.entry(display_item.stacking_context_id())
@ -374,7 +374,7 @@ impl<'a> DisplayListBuildState<'a> {
self.processing_scrolling_overflow_element
}
fn create_base_display_item(
pub fn create_base_display_item(
&self,
bounds: Rect<Au>,
clip_rect: Rect<Au>,