mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Bug 1343937 - Fix a crash in nsWrapperCache.h
* Implement and use GetInFlowParent * Exempt scrollbar NAC from the new NAC semantics Tag #1375
This commit is contained in:
parent
e5725baa34
commit
8e51f64cad
5 changed files with 41 additions and 4 deletions
|
|
@ -8951,10 +8951,10 @@ GetCorrectedParent(const nsIFrame* aFrame)
|
|||
nsIContent* content = aFrame->GetContent();
|
||||
Element* element =
|
||||
content && content->IsElement() ? content->AsElement() : nullptr;
|
||||
if (element && element->IsNativeAnonymous() &&
|
||||
if (element && element->IsNativeAnonymous() && !element->IsNativeScrollbarContent() &&
|
||||
element->GetPseudoElementType() == aFrame->StyleContext()->GetPseudoType()) {
|
||||
while (parent->GetContent() && parent->GetContent()->IsNativeAnonymous()) {
|
||||
parent = parent->GetParent();
|
||||
parent = parent->GetInFlowParent();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue