Bug 508665 - part 14, uninline nsIFrame::GetPositionIgnoringScrolling() (since it uses a nsContainerFrame method). r=roc

This commit is contained in:
Mats Palmgren 2014-05-24 22:20:41 +00:00
parent a31b2b6b65
commit 2015c893ab
2 changed files with 8 additions and 4 deletions

View File

@ -5184,6 +5184,13 @@ nsIFrame::GetNormalPosition() const
return GetPosition();
}
nsPoint
nsIFrame::GetPositionIgnoringScrolling()
{
return GetParent() ? GetParent()->GetPositionOfChildIgnoringScrolling(this)
: GetPosition();
}
nsRect
nsIFrame::GetOverflowRect(nsOverflowType aType) const
{

View File

@ -743,10 +743,7 @@ public:
virtual nsPoint GetPositionOfChildIgnoringScrolling(nsIFrame* aChild)
{ return aChild->GetPosition(); }
nsPoint GetPositionIgnoringScrolling() {
return mParent ? mParent->GetPositionOfChildIgnoringScrolling(this)
: GetPosition();
}
nsPoint GetPositionIgnoringScrolling();
static void DestroyRegion(void* aPropertyValue);