mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Bug 1340885 - Null check frame's content when searching for NAC ancestors in GetCorrectedParent
Tag #1375
This commit is contained in:
parent
69139427d5
commit
e5725baa34
1 changed files with 2 additions and 1 deletions
|
|
@ -8949,7 +8949,8 @@ GetCorrectedParent(const nsIFrame* aFrame)
|
|||
// box, or a non-NAC-backed pseudo like ::first-line) that does not match the
|
||||
// one that the NAC implements, if any.
|
||||
nsIContent* content = aFrame->GetContent();
|
||||
Element* element = content->IsElement() ? content->AsElement() : nullptr;
|
||||
Element* element =
|
||||
content && content->IsElement() ? content->AsElement() : nullptr;
|
||||
if (element && element->IsNativeAnonymous() &&
|
||||
element->GetPseudoElementType() == aFrame->StyleContext()->GetPseudoType()) {
|
||||
while (parent->GetContent() && parent->GetContent()->IsNativeAnonymous()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue