зеркало из https://github.com/mozilla/pjs.git
Removed gratuitous if's
This commit is contained in:
Родитель
bfb613401a
Коммит
634974d444
|
@ -394,10 +394,8 @@ NS_METHOD nsFrame::SetRect(const nsRect& aRect)
|
|||
|
||||
NS_METHOD nsFrame::MoveTo(nscoord aX, nscoord aY)
|
||||
{
|
||||
if ((aX != mRect.x) || (aY != mRect.y)) {
|
||||
mRect.x = aX;
|
||||
mRect.y = aY;
|
||||
}
|
||||
mRect.x = aX;
|
||||
mRect.y = aY;
|
||||
|
||||
// Let the view know
|
||||
if ((nsnull != mView) && (0 == (mState & NS_FRAME_IN_REFLOW))) {
|
||||
|
@ -1266,7 +1264,6 @@ NS_METHOD nsFrame::GetOffsetFromView(nsPoint& aOffset, nsIView*& aView) const
|
|||
frame->GetView(aView);
|
||||
}
|
||||
} while ((nsnull != frame) && (nsnull == aView));
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче