diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2020-01-09 15:21:58 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2020-01-09 15:21:58 +0100 |
commit | 53fc6143dcbbdb2f8669e7260083e8ad7482218e (patch) | |
tree | d14d4ea06ca5a7722e8cb838ddac77dd6b650499 /components/layout_thread_2020/lib.rs | |
parent | 062c1872f05cdb146274acbf77516e9c255320ec (diff) | |
download | servo-53fc6143dcbbdb2f8669e7260083e8ad7482218e.tar.gz servo-53fc6143dcbbdb2f8669e7260083e8ad7482218e.zip |
Use the is_contentful field of DisplayListBuilder
Diffstat (limited to 'components/layout_thread_2020/lib.rs')
-rw-r--r-- | components/layout_thread_2020/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs index bb9f614831c..5df365e889b 100644 --- a/components/layout_thread_2020/lib.rs +++ b/components/layout_thread_2020/lib.rs @@ -1290,7 +1290,7 @@ impl LayoutThread { self.viewport_size.height.to_f32_px(), )); let mut display_list = DisplayListBuilder::new(self.id.to_webrender(), viewport_size); - let is_contentful = fragment_tree.build_display_list(&mut display_list, viewport_size); + fragment_tree.build_display_list(&mut display_list, viewport_size); debug!("Layout done!"); @@ -1302,7 +1302,7 @@ impl LayoutThread { // sending the display list to WebRender in order to set time related // Progressive Web Metrics. self.paint_time_metrics - .maybe_observe_paint_time(self, epoch, is_contentful.0); + .maybe_observe_paint_time(self, epoch, display_list.is_contentful); self.webrender_api.send_display_list( self.webrender_document, |