aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread_2020/lib.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-09-06 17:11:36 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-09-06 17:15:53 +0200
commite9f7079c7066f032ba94a91317f4aa012e18d94c (patch)
tree4984479566176a34455ce4b01a7bb58c4a7b18e1 /components/layout_thread_2020/lib.rs
parent526619a78aa88944e917ab97c0f969eceea3ebc7 (diff)
downloadservo-e9f7079c7066f032ba94a91317f4aa012e18d94c.tar.gz
servo-e9f7079c7066f032ba94a91317f4aa012e18d94c.zip
Replace DisplayList::is_contentful with tracking during conversion to WR display lists
Diffstat (limited to 'components/layout_thread_2020/lib.rs')
-rw-r--r--components/layout_thread_2020/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs
index 6db5e2e8681..9c3e03c5ee0 100644
--- a/components/layout_thread_2020/lib.rs
+++ b/components/layout_thread_2020/lib.rs
@@ -1342,7 +1342,7 @@ impl LayoutThread {
debug!("Layout done!");
// TODO: Avoid the temporary conversion and build webrender sc/dl directly!
- let builder = display_list.convert_to_webrender(self.id);
+ let (builder, is_contentful) = display_list.convert_to_webrender(self.id);
let viewport_size = Size2D::new(
self.viewport_size.width.to_f32_px(),
@@ -1359,7 +1359,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, &display_list);
+ .maybe_observe_paint_time(self, epoch, is_contentful.0);
let mut txn = webrender_api::Transaction::new();
txn.set_display_list(