diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-06-10 17:09:44 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2019-07-09 10:51:56 -0400 |
commit | 10ab466e5d25652ae4a062eb62fbe4f67585d400 (patch) | |
tree | 4111f6658a3e0a4f01f3079d550a400cac82c99b /components/layout/display_list/builder.rs | |
parent | e57e2121b27b09ceb8c87d3463f09f9c227b0565 (diff) | |
download | servo-10ab466e5d25652ae4a062eb62fbe4f67585d400.tar.gz servo-10ab466e5d25652ae4a062eb62fbe4f67585d400.zip |
Create a solid rectangle display list entry for the page background.
Diffstat (limited to 'components/layout/display_list/builder.rs')
-rw-r--r-- | components/layout/display_list/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/display_list/builder.rs b/components/layout/display_list/builder.rs index 02bde1f6741..bb2bbe58b34 100644 --- a/components/layout/display_list/builder.rs +++ b/components/layout/display_list/builder.rs @@ -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>, |