bug 1369015 - Remove a useless do_QueryFrame() call. r=jfkthame

GetParent() already returns a nsContainerFrame* so there's no need to
do_QueryFrame that to a nsContainerFrame* !

MozReview-Commit-ID: B8CwGkUWIoT
This commit is contained in:
Mats Palmgren 2017-05-31 21:29:49 +02:00
Родитель 357e4b9560
Коммит 26214cbd6f
1 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -379,16 +379,13 @@ nsAbsoluteContainingBlock::DoMarkFramesDirty(bool aMarkAllDirty)
}
}
// Given an out-of-flow frame, this method returns the parent frame of
// its placeholder frame, if that parent is a nsContainerFrame.
// Given an out-of-flow frame, this method returns the parent frame of its
// placeholder frame or null if it doesn't have a placeholder for some reason.
static nsContainerFrame*
GetPlaceholderContainer(nsIFrame* aPositionedFrame)
{
nsIFrame* placeholder = aPositionedFrame->GetPlaceholderFrame();
if (!placeholder) {
return nullptr;
}
return do_QueryFrame(placeholder->GetParent());
return placeholder ? placeholder->GetParent() : nullptr;
}
/**