mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1133104, null check parent node before checking whether it is <picture>, r=bz
This commit is contained in:
parent
b12fcdab7c
commit
d5275b4cf7
@ -629,8 +629,8 @@ HTMLImageElement::UnbindFromTree(bool aDeep, bool aNullParent)
|
||||
}
|
||||
}
|
||||
|
||||
if (aNullParent &&
|
||||
nsINode::GetParentNode()->Tag() == nsGkAtoms::picture &&
|
||||
if (aNullParent && GetParent() &&
|
||||
GetParent()->IsHTML(nsGkAtoms::picture) &&
|
||||
HTMLPictureElement::IsPictureEnabled()) {
|
||||
// Being removed from picture re-triggers selection, even if we
|
||||
// weren't using a <source> peer
|
||||
|
Loading…
Reference in New Issue
Block a user