diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-10-15 17:52:51 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-10-24 10:44:31 +0200 |
commit | cfc3ffcd545a18806674cf3bb1e3ddcffff3d89e (patch) | |
tree | 139b37dc348c1a4c4231210611164d9039929e22 /components/layout_thread_2020 | |
parent | 4e8eeda976f1475b11b1630854a01046d51e3c44 (diff) | |
download | servo-cfc3ffcd545a18806674cf3bb1e3ddcffff3d89e.tar.gz servo-cfc3ffcd545a18806674cf3bb1e3ddcffff3d89e.zip |
2020: paint background-color
Diffstat (limited to 'components/layout_thread_2020')
-rw-r--r-- | components/layout_thread_2020/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs index 1c0ee67a268..13cf35975ee 100644 --- a/components/layout_thread_2020/lib.rs +++ b/components/layout_thread_2020/lib.rs @@ -35,6 +35,7 @@ use gfx_traits::{node_id_from_scroll_id, Epoch}; use ipc_channel::ipc::{self, IpcReceiver, IpcSender}; use ipc_channel::router::ROUTER; use layout::context::LayoutContext; +use layout::display_list::DisplayListBuilder; use layout::query::{ process_content_box_request, process_content_boxes_request, LayoutRPCImpl, LayoutThreadData, }; @@ -1271,9 +1272,9 @@ impl LayoutThread { self.viewport_size.width.to_f32_px(), self.viewport_size.height.to_f32_px(), )); - let mut display_list = - webrender_api::DisplayListBuilder::new(self.id.to_webrender(), viewport_size); - let is_contentful = fragment_tree.build_display_list(&mut display_list); + let mut display_list = DisplayListBuilder::new(self.id.to_webrender(), viewport_size); + let is_contentful = + fragment_tree.build_display_list(&mut display_list, self.id, viewport_size); debug!("Layout done!"); @@ -1292,7 +1293,7 @@ impl LayoutThread { webrender_api::Epoch(epoch.0), None, viewport_size, - display_list.finalize(), + display_list.wr.finalize(), true, ); txn.generate_frame(); |