mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-07-21 03:48:43 +00:00
Add nullcheck for frames in FindNearestCommonAncestorFrame
This resolves #978.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user