nscoord height = aState->mReflowState.mComputedHeight; if (height == NS_UNCONSTRAINEDSIZE) { height = aDesiredInsideBorderSize.height - aKidPadding.top - aKidPadding.bottom;
nscoord contentHeight = aState->mReflowState.mComputedHeight; if (contentHeight == NS_UNCONSTRAINEDSIZE) { contentHeight = aDesiredInsideBorderSize.height - aState->mReflowState.mComputedPadding.TopBottom();
static nsSize ComputeInsideBorderSize(ScrollReflowState* aState,                                      const nsSize& aDesiredInsideBorderSize,                                      const nsMargin& aKidPadding){  nscoord width = aState->mReflowState.mComputedWidth;  if (width == NS_UNCONSTRAINEDSIZE) {    width = aDesiredInsideBorderSize.width - aKidPadding.left - aKidPadding.right;  }  nscoord height = aState->mReflowState.mComputedHeight;  if (height == NS_UNCONSTRAINEDSIZE) {    height = aDesiredInsideBorderSize.height - aKidPadding.top - aKidPadding.bottom;  }  aState->mReflowState.ApplyMinMaxConstraints(&width, &height);  return nsSize(width + aKidPadding.left + aKidPadding.right,                height + aKidPadding.top + aKidPadding.bottom);}