зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1133104, null check parent node before checking whether it is <picture>, r=bz
This commit is contained in:
Родитель
2d13aa07e7
Коммит
62064bcb83
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче