diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-04-22 17:28:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 15:28:14 +0000 |
commit | 7d63c7607f12e6ef89e748b360e8e9265eae577b (patch) | |
tree | 3e496041400210645f285f7493377af11d8e2019 /components/script/dom/htmlelement.rs | |
parent | 97376e6d96abcbdfd30f3a91ec5aee7ce2add178 (diff) | |
download | servo-7d63c7607f12e6ef89e748b360e8e9265eae577b.tar.gz servo-7d63c7607f12e6ef89e748b360e8e9265eae577b.zip |
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.
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [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.
<!-- Also, please make sure that "Allow edits from maintainers" checkbox
is checked, so that we can help you if you get stuck somewhere along the
way.-->
<!-- Pull requests that do not address these steps are welcome, but they
will require additional verification as part of the review process. -->
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r-- | components/script/dom/htmlelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |