mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Merge Node::shadow_including_inclusive_ancestors into inclusive_ancestors
This commit is contained in:
parent
0ca4792dc6
commit
8eba587547
9 changed files with 95 additions and 59 deletions
|
@ -51,7 +51,9 @@ use crate::dom::globalscope::GlobalScope;
|
|||
use crate::dom::htmlanchorelement::HTMLAnchorElement;
|
||||
use crate::dom::htmliframeelement::{HTMLIFrameElement, NavigationType};
|
||||
use crate::dom::mutationobserver::MutationObserver;
|
||||
use crate::dom::node::{from_untrusted_node_address, window_from_node, Node, NodeDamage};
|
||||
use crate::dom::node::{
|
||||
from_untrusted_node_address, window_from_node, Node, NodeDamage, ShadowIncluding,
|
||||
};
|
||||
use crate::dom::performanceentry::PerformanceEntry;
|
||||
use crate::dom::performancepainttiming::PerformancePaintTiming;
|
||||
use crate::dom::serviceworker::TrustedServiceWorkerAddress;
|
||||
|
@ -3097,7 +3099,7 @@ impl ScriptThread {
|
|||
if let Some(target) = self.topmost_mouse_over_target.get() {
|
||||
if let Some(anchor) = target
|
||||
.upcast::<Node>()
|
||||
.inclusive_ancestors()
|
||||
.inclusive_ancestors(ShadowIncluding::No)
|
||||
.filter_map(DomRoot::downcast::<HTMLAnchorElement>)
|
||||
.next()
|
||||
{
|
||||
|
@ -3121,7 +3123,7 @@ impl ScriptThread {
|
|||
if let Some(target) = prev_mouse_over_target {
|
||||
if let Some(_) = target
|
||||
.upcast::<Node>()
|
||||
.inclusive_ancestors()
|
||||
.inclusive_ancestors(ShadowIncluding::No)
|
||||
.filter_map(DomRoot::downcast::<HTMLAnchorElement>)
|
||||
.next()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue