script: Remove code dealing with CompositorUntrustedNode (#36343)

There used to be two kinds of untrusted nodes, but these have been
unified, so the duplicate methods dealing with them in `script` can be
removed.

Testing: This is covered by existing tests as it shouldn't change
any behavior.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2025-04-04 20:55:05 +02:00 committed by GitHub
parent 54bf13de43
commit c09c31ef85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 36 deletions

View file

@ -1309,7 +1309,7 @@ impl Document {
event.action, hit_test_result.point_in_viewport
);
let node = unsafe { node::from_untrusted_compositor_node_address(hit_test_result.node) };
let node = unsafe { node::from_untrusted_node_address(hit_test_result.node) };
let Some(el) = node
.inclusive_ancestors(ShadowIncluding::Yes)
.filter_map(DomRoot::downcast::<Element>)
@ -1774,7 +1774,7 @@ impl Document {
return;
};
let node = unsafe { node::from_untrusted_compositor_node_address(hit_test_result.node) };
let node = unsafe { node::from_untrusted_node_address(hit_test_result.node) };
let Some(new_target) = node
.inclusive_ancestors(ShadowIncluding::No)
.filter_map(DomRoot::downcast::<Element>)
@ -1952,7 +1952,7 @@ impl Document {
return;
};
let node = unsafe { node::from_untrusted_compositor_node_address(hit_test_result.node) };
let node = unsafe { node::from_untrusted_node_address(hit_test_result.node) };
let Some(el) = node
.inclusive_ancestors(ShadowIncluding::No)
.filter_map(DomRoot::downcast::<Element>)
@ -2012,7 +2012,7 @@ impl Document {
TouchEventType::Cancel => "touchcancel",
};
let node = unsafe { node::from_untrusted_compositor_node_address(hit_test_result.node) };
let node = unsafe { node::from_untrusted_node_address(hit_test_result.node) };
let Some(el) = node
.inclusive_ancestors(ShadowIncluding::No)
.filter_map(DomRoot::downcast::<Element>)