mScrollAreaFrame->MoveTo(aPresContext, border.left, border.top);
mScrollAreaFrame->MoveTo(aPresContext, borderPadding.left, borderPadding.top);
nsGfxScrollFrameInner::LayoutChildren(nsIPresContext*          aPresContext,                              nsHTMLReflowMetrics&     aDesiredSize,                              const nsHTMLReflowState& aReflowState){  nsSize scrollAreaSize;  GetFrameSize(mScrollAreaFrame, scrollAreaSize);  nsSize sbSize;  GetScrollbarDimensions(aPresContext, sbSize);  // only move by the border not the padding. The padding will end up on our child instead   const nsMargin& border = aReflowState.mComputedBorderPadding;  // Place scroll area  nsIView*  view;  mScrollAreaFrame->MoveTo(aPresContext, border.left, border.top);  mScrollAreaFrame->GetView(aPresContext, &view);  if (view) {    nsContainerFrame::SyncFrameViewAfterReflow(aPresContext, mScrollAreaFrame,                                               view, nsnull);  }  // place vertical scrollbar  mVScrollbarFrame->MoveTo(aPresContext, border.left + scrollAreaSize.width, border.top);  mVScrollbarFrame->GetView(aPresContext, &view);  if (view) {    nsContainerFrame::SyncFrameViewAfterReflow(aPresContext, mVScrollbarFrame,                                               view, nsnull);  }  // place horizontal scrollbar  mHScrollbarFrame->MoveTo(aPresContext, border.left, border.top + scrollAreaSize.height);  mHScrollbarFrame->GetView(aPresContext, &view);  if (view) {    nsContainerFrame::SyncFrameViewAfterReflow(aPresContext, mHScrollbarFrame,                                               view, nsnull);  }  // Compute our desired size  // ---------- compute width -----------   aDesiredSize.width = scrollAreaSize.width;  // add border  aDesiredSize.width += border.left + border.right;  // add scrollbar  if (mHasVerticalScrollbar)      aDesiredSize.width += sbSize.width;    // ---------- compute height -----------   /*  // For the height if we're shrink wrapping then use whatever is smaller between  // the available height and the child's desired size; otherwise, use the scroll  // area size  if (NS_AUTOHEIGHT == aReflowState.mComputedHeight) {    aDesiredSize.height = PR_MIN(aReflowState.availableHeight, scrollAreaSize.height);  } else {  */    aDesiredSize.height = scrollAreaSize.height;  //}  // add the scrollbar in  if (mHasHorizontalScrollbar)     aDesiredSize.height += sbSize.height;  // add in our border  aDesiredSize.height += border.top + border.bottom;    aDesiredSize.ascent = aDesiredSize.height;  aDesiredSize.descent = 0;  // ------- set up max size -------  if (nsnull != aDesiredSize.maxElementSize) {    nscoord maxWidth = aDesiredSize.maxElementSize->width;    maxWidth += aReflowState.mComputedBorderPadding.left + aReflowState.mComputedBorderPadding.right + sbSize.width;    nscoord maxHeight = aDesiredSize.maxElementSize->height;    maxHeight += aReflowState.mComputedBorderPadding.top + aReflowState.mComputedBorderPadding.bottom;    aDesiredSize.maxElementSize->width = maxWidth;    aDesiredSize.maxElementSize->height = maxHeight;  }}