From 2af6fe0b30a275e5fd8a43eca4126d82639fbaa9 Mon Sep 17 00:00:00 2001 From: Mukilan Thiyagarajan Date: Mon, 20 May 2024 16:05:18 +0530 Subject: compositor: Move WebRender-ish messages and types to `webrender_traits` (#32315) * Move WebRender related types to `webrender_traits` This refactor moves several WebRender related types from `compositing_traits`, `script_traits` and `net_traits` crates to the `webrender_traits` crate. This change also moves the `Image` type and associated function out of `net_traits` and into the `pixels` crate. Co-authored-by: Martin Robinson Signed-off-by: Mukilan Thiyagarajan * Move `script_traits::WebrenderIpcSender` to `webrender_traits::WebRenderScriptApi` --------- Signed-off-by: Mukilan Thiyagarajan Co-authored-by: Martin Robinson --- components/script/dom/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/node.rs') diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 3531fb1b9f3..bbe09601d57 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -23,7 +23,7 @@ use js::jsapi::JSObject; use js::rust::HandleObject; use libc::{self, c_void, uintptr_t}; use malloc_size_of::{MallocSizeOf, MallocSizeOfOps}; -use net_traits::image::base::{Image, ImageMetadata}; +use pixels::{Image, ImageMetadata}; use script_layout_interface::{ GenericLayoutData, HTMLCanvasData, HTMLMediaData, LayoutElementType, LayoutNodeType, QueryMsg, SVGSVGData, StyleData, TrustedNodeAddress, -- cgit v1.2.3