deCOMtaminate SetBounds(), GetChildBox(), GetNextBox(), GetParentBox(),

GetVAlign(), GetHAlign().  Remove GetInset().  Bug 243370, patch by Andreas
Lange <anlan@lange.cx>, r+sr=roc
This commit is contained in:
bzbarsky@mit.edu
2007-02-22 18:05:14 +00:00
parent d8c1835f36
commit c9c9579477
35 changed files with 176 additions and 414 deletions

View File

@@ -705,8 +705,7 @@ nsMenuFrame::ActivateMenu(PRBool aActivateFlag)
// make sure the scrolled window is at 0,0
if (mLastPref.height <= rect.height) {
nsIBox* child;
menuPopup->GetChildBox(&child);
nsIBox* child = menuPopup->GetChildBox();
nsCOMPtr<nsIScrollableFrame> scrollframe(do_QueryInterface(child));
if (scrollframe) {
@@ -1061,8 +1060,7 @@ nsMenuFrame::DoLayout(nsBoxLayoutState& aState)
}
// is the new size too small? Make sure we handle scrollbars correctly
nsIBox* child;
popupChild->GetChildBox(&child);
nsIBox* child = popupChild->GetChildBox();
nsRect bounds(popupChild->GetRect());