nsRect r = mScrolledFrame->GetOverflowRect(); return nsSize(r.XMost(), r.YMost());
nsSize size; nsIBox* child = nsnull; mScrollAreaBox->GetChildBox(&child); nsIFrame* frame; child->GetFrame(&frame); nsIView* view; frame->GetView(aPresContext, &view); NS_ASSERTION(view,"Scrolled frame must have a view!!!");  nsRect rect(0,0,0,0); view->GetBounds(rect);  size.width = rect.width; size.height = rect.height;  nsBox::AddMargin(child, size); nsBox::AddBorderAndPadding(mScrollAreaBox, size); nsBox::AddInset(mScrollAreaBox, size);  *aWidth = size.width; *aHeight = size.height;  return NS_OK;
nsGfxScrollFrameInner::GetScrolledSize() const{  nsRect r = mScrolledFrame->GetOverflowRect();  return nsSize(r.XMost(), r.YMost());}