diff options
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r-- | components/layout_thread/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index e279f10221d..8cb612bd1de 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -69,7 +69,7 @@ use script_layout_interface::{ use script_traits::{ ConstellationControlMsg, DrawAPaintImageResult, IFrameSizeMsg, LayoutControlMsg, LayoutMsg as ConstellationMsg, PaintWorkletError, Painter, ScrollState, UntrustedNodeAddress, - WebrenderIpcSender, WindowSizeData, WindowSizeType, + WindowSizeData, WindowSizeType, }; use servo_arc::Arc as ServoArc; use servo_atoms::Atom; @@ -102,6 +102,7 @@ use style::traversal_flags::TraversalFlags; use style_traits::{CSSPixel, DevicePixel, SpeculativePainter}; use url::Url; use webrender_api::{units, ColorF, HitTestFlags}; +use webrender_traits::WebRenderScriptApi; /// Information needed by layout. pub struct LayoutThread { @@ -176,7 +177,7 @@ pub struct LayoutThread { registered_painters: RegisteredPaintersImpl, /// Webrender interface. - webrender_api: WebrenderIpcSender, + webrender_api: WebRenderScriptApi, /// Paint time metrics. paint_time_metrics: PaintTimeMetrics, @@ -365,7 +366,7 @@ impl Layout for LayoutThread { .webrender_api .hit_test(Some(self.id.into()), client_point, flags); - results.iter().map(|result| result.node).collect() + results.iter().map(|result| result.node.into()).collect() } fn query_offset_parent(&self, node: OpaqueNode) -> OffsetParentResponse { @@ -567,7 +568,7 @@ impl LayoutThread { image_cache: Arc<dyn ImageCache>, font_cache_thread: FontCacheThread, time_profiler_chan: profile_time::ProfilerChan, - webrender_api: WebrenderIpcSender, + webrender_api: WebRenderScriptApi, paint_time_metrics: PaintTimeMetrics, window_size: WindowSizeData, ) -> LayoutThread { |