ViewportFrame::AdjustReflowStateForScrollbars(nsIPresContext*    aPresContext, nsHTMLReflowState& aReflowState) const
ViewportFrame::AdjustReflowStateForScrollbars(nsHTMLReflowState* aReflowState) const
ViewportFrame::AdjustReflowStateForScrollbars(nsIPresContext*    aPresContext,                                              nsHTMLReflowState& aReflowState) const{  // Calculate how much room is available for fixed frames. That means  // determining if the viewport is scrollable and whether the vertical and/or  // horizontal scrollbars are visible  // Get our prinicpal child frame and see if we're scrollable  nsIFrame* kidFrame = mFrames.FirstChild();  nsCOMPtr<nsIScrollableFrame> scrollingFrame(do_QueryInterface(kidFrame));  if (scrollingFrame) {    nscoord sbWidth = 0, sbHeight = 0;    PRBool sbHVisible = PR_FALSE, sbVVisible = PR_FALSE;    scrollingFrame->GetScrollbarSizes(aPresContext, &sbWidth, &sbHeight);    scrollingFrame->GetScrollbarVisibility(aPresContext, &sbVVisible, &sbHVisible);    if (sbVVisible) {      aReflowState.mComputedWidth -= sbWidth;      aReflowState.availableWidth -= sbWidth;    }    if (sbHVisible) {      aReflowState.mComputedHeight -= sbHeight;    }  }}