Home | History | Annotate | Download | only in dom

Lines Matching refs:ancestor

136     // Assume divergent boundary is the relatedTarget itself (in other words, related target ancestor chain does not cross any shadow DOM boundaries).
140 // Walk down from the top, looking for lowest common ancestor, also monitoring shadow DOM boundaries.
166 // The relatedTarget is an ancestor or shadowHost of the target.
247 Node* ancestor = m_node.get();
248 EventTarget* target = eventTargetRespectingSVGTargetRules(ancestor);
251 bool isSVGShadowRoot = ancestor->isSVGShadowRoot();
252 if (isSVGShadowRoot || ancestor->isShadowRoot()) {
256 ancestor = isSVGShadowRoot ? ancestor->svgShadowHost() : ancestor->shadowHost();
258 ancestor = ancestor->shadowHost();
261 target = ancestor;
263 ancestor = ancestor->parentNodeGuaranteedHostFree();
265 if (!ancestor)
270 shouldSkipNextAncestor = ancestor->isSVGShadowRoot();
275 m_ancestors.append(EventContext(ancestor, eventTargetRespectingSVGTargetRules(ancestor), target));