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(); return GetPosition();
} }
nsPoint
nsIFrame::GetPositionIgnoringScrolling()
{
return GetParent() ? GetParent()->GetPositionOfChildIgnoringScrolling(this)
: GetPosition();
}
nsRect nsRect
nsIFrame::GetOverflowRect(nsOverflowType aType) const nsIFrame::GetOverflowRect(nsOverflowType aType) const
{ {

View File

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