mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Issue #2135 - Follow-up: Fix potential crash if shadow root is null
This commit is contained in:
parent
3fb11e542c
commit
ad929c5dd5
1 changed files with 3 additions and 1 deletions
|
|
@ -277,7 +277,9 @@ DocumentOrShadowRoot::ElementsFromPointHelper(float aX, float aY,
|
|||
node = node->GetParent();
|
||||
if (node) {
|
||||
ShadowRoot* shadow = ShadowRoot::FromNode(node);
|
||||
node = shadow->Host();
|
||||
if (shadow) {
|
||||
node = shadow->Host();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue