mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Add nullcheck for frames in FindNearestCommonAncestorFrame
This resolves #978.
This commit is contained in:
parent
c9ecf8e87b
commit
21daa1d5cb
1 changed files with 4 additions and 0 deletions
|
|
@ -2681,6 +2681,10 @@ nsLayoutUtils::GetTransformToAncestorScaleExcludingAnimated(nsIFrame* aFrame)
|
|||
nsIFrame*
|
||||
nsLayoutUtils::FindNearestCommonAncestorFrame(nsIFrame* aFrame1, nsIFrame* aFrame2)
|
||||
{
|
||||
if (!aFrame1 || !aFrame2) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
AutoTArray<nsIFrame*,100> ancestors1;
|
||||
AutoTArray<nsIFrame*,100> ancestors2;
|
||||
nsIFrame* commonAncestor = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue