зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
357e4b9560
Коммит
26214cbd6f
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче