aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r--components/layout_thread/lib.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index 1e8bd2848be..a6b57778185 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -1064,21 +1064,19 @@ impl LayoutThread {
debug!("Layout done!");
- // TODO: Avoid the temporary conversion and build webrender sc/dl directly!
- let (builder, compositor_info, is_contentful) =
- display_list.convert_to_webrender(self.id);
-
- let viewport_size = Size2D::new(
+ let viewport_size = webrender_api::units::LayoutSize::new(
self.viewport_size.width.to_f32_px(),
self.viewport_size.height.to_f32_px(),
);
+ // TODO: Avoid the temporary conversion and build webrender sc/dl directly!
+ let (builder, compositor_info, is_contentful) =
+ display_list.convert_to_webrender(self.id, viewport_size);
+
let mut epoch = self.epoch.get();
epoch.next();
self.epoch.set(epoch);
- let viewport_size = webrender_api::units::LayoutSize::from_untyped(viewport_size);
-
// Observe notifications about rendered frames if needed right before
// sending the display list to WebRender in order to set time related
// Progressive Web Metrics.