mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-06-17 21:29:53 +00:00
#399: null check in FindNearestCommonAncestorFrame from PM 978
This commit is contained in:
parent
37789a58a8
commit
23f3034604
|
@ -2509,6 +2509,10 @@ nsLayoutUtils::GetTransformToAncestorScaleExcludingAnimated(nsIFrame* aFrame)
|
||||||
nsIFrame*
|
nsIFrame*
|
||||||
nsLayoutUtils::FindNearestCommonAncestorFrame(nsIFrame* aFrame1, nsIFrame* aFrame2)
|
nsLayoutUtils::FindNearestCommonAncestorFrame(nsIFrame* aFrame1, nsIFrame* aFrame2)
|
||||||
{
|
{
|
||||||
|
if (MOZ_UNLIKELY(!aFrame1 || !aFrame2)) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
nsAutoTArray<nsIFrame*,100> ancestors1;
|
nsAutoTArray<nsIFrame*,100> ancestors1;
|
||||||
nsAutoTArray<nsIFrame*,100> ancestors2;
|
nsAutoTArray<nsIFrame*,100> ancestors2;
|
||||||
nsIFrame* commonAncestor = nullptr;
|
nsIFrame* commonAncestor = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user