зеркало из https://github.com/mozilla/pjs.git
bug 361058, gcc2.95.3 fails to compile nsListBoxBodyFrame.cpp, r+sr=roc
This commit is contained in:
Родитель
88ee17883c
Коммит
32e425dbb4
|
@ -1115,7 +1115,7 @@ nsListBoxBodyFrame::GetFirstItemBox(PRInt32 aOffset, PRBool* aCreated)
|
|||
mBottomFrame = mTopFrame;
|
||||
|
||||
if (mTopFrame) {
|
||||
return mTopFrame->IsBoxFrame() ? mTopFrame : nsnull;
|
||||
return mTopFrame->IsBoxFrame() ? NS_STATIC_CAST(nsIBox*, mTopFrame) : nsnull;
|
||||
}
|
||||
|
||||
// top frame was cleared out
|
||||
|
@ -1123,7 +1123,7 @@ nsListBoxBodyFrame::GetFirstItemBox(PRInt32 aOffset, PRBool* aCreated)
|
|||
mBottomFrame = mTopFrame;
|
||||
|
||||
if (mTopFrame && mRowsToPrepend <= 0) {
|
||||
return mTopFrame->IsBoxFrame() ? mTopFrame : nsnull;
|
||||
return mTopFrame->IsBoxFrame() ? NS_STATIC_CAST(nsIBox*, mTopFrame) : nsnull;
|
||||
}
|
||||
|
||||
// At this point, we either have no frames at all,
|
||||
|
@ -1165,7 +1165,7 @@ nsListBoxBodyFrame::GetFirstItemBox(PRInt32 aOffset, PRBool* aCreated)
|
|||
|
||||
mBottomFrame = mTopFrame;
|
||||
|
||||
return mTopFrame->IsBoxFrame() ? mTopFrame : nsnull;
|
||||
return mTopFrame->IsBoxFrame() ? NS_STATIC_CAST(nsIBox*, mTopFrame) : nsnull;
|
||||
} else
|
||||
return GetFirstItemBox(++aOffset, 0);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче