From 7d63c7607f12e6ef89e748b360e8e9265eae577b Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Mon, 22 Apr 2024 17:28:14 +0200 Subject: script_layout: Remove script to layout messages (#32081) Instead of communicating with layout via messages, script can simply call methods on the layout trait. This simplifies the way that script communicates with layout and opens the path to sharing more data structures between the two systems. This is part of a continuing series of cleanups after removing the layout thread. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they should not change behavior. --- components/script/dom/htmlelement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/htmlelement.rs') diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs index 9b84e9dbe29..3a7bd467215 100644 --- a/components/script/dom/htmlelement.rs +++ b/components/script/dom/htmlelement.rs @@ -9,7 +9,7 @@ use std::rc::Rc; use dom_struct::dom_struct; use html5ever::{local_name, namespace_url, ns, LocalName, Prefix}; use js::rust::HandleObject; -use script_layout_interface::message::QueryMsg; +use script_layout_interface::QueryMsg; use style::attr::AttrValue; use style_traits::dom::ElementState; -- cgit v1.2.3