diff options
author | bors-servo <infra@servo.org> | 2023-05-13 16:32:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-13 16:32:55 +0200 |
commit | 8dfd613aa188d2271d692a31192284eabdaf9f9d (patch) | |
tree | ea4297cd765328c98911757730bdc0b301e8000f /components/layout/query.rs | |
parent | 45dd2764af657948aa2124473e562ead5622b33c (diff) | |
parent | 72b5fcd0b69201bd5cda125821dd90555490b45d (diff) | |
download | servo-8dfd613aa188d2271d692a31192284eabdaf9f9d.tar.gz servo-8dfd613aa188d2271d692a31192284eabdaf9f9d.zip |
Auto merge of #29727 - mrobinson:more-layout-dom-cleanup, r=jdm
More cleanup of the layout DOM wrappers
This PR includes two commits which continue to clean up the layout DOM wrappers.
- in the first the unused `DangerousThreadSafeLayoutNode` trait is removed
- in the second DOM-related code is combined into one source file in Layout 2020 and some traits are combined and removed.
---
<!-- 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 fix #29688
- [x] These changes fix #29722
- [x] These changes do not require tests because they do 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/layout/query.rs')
-rw-r--r-- | components/layout/query.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/layout/query.rs b/components/layout/query.rs index 98a3ec662fb..175ddb2679f 100644 --- a/components/layout/query.rs +++ b/components/layout/query.rs @@ -11,7 +11,6 @@ use crate::display_list::IndexableText; use crate::flow::{Flow, GetBaseFlow}; use crate::fragment::{Fragment, FragmentBorderBoxIterator, FragmentFlags, SpecificFragmentInfo}; use crate::inline::InlineFragmentNodeFlags; -use crate::opaque_node::OpaqueNodeMethods; use crate::sequential; use crate::wrapper::LayoutNodeLayoutData; use app_units::Au; @@ -1099,7 +1098,7 @@ pub fn process_offset_parent_query( let origin = node_offset_box.offset - parent_info.origin.to_vector(); let size = node_offset_box.rectangle.size; OffsetParentResponse { - node_address: Some(parent_info.node_address.to_untrusted_node_address()), + node_address: Some(parent_info.node_address.into()), rect: Rect::new(origin, size), } }, |