nsHTMLFrameInnerFrame::GetDesiredSize(nsIPresContext* aPresContext,
nsHTMLFrameOuterFrame::GetDesiredSize(nsIPresContext* aPresContext,
nsHTMLFrameInnerFrame::GetDesiredSize(nsIPresContext* aPresContext,                                      const nsHTMLReflowState& aReflowState,                                      nsHTMLReflowMetrics& aDesiredSize){  aDesiredSize.width  = aReflowState.availableWidth;  aDesiredSize.height = aReflowState.availableHeight;  aDesiredSize.ascent = aDesiredSize.height;  aDesiredSize.descent = 0;  // For unknown reasons, the maxElementSize for the InnerFrame is  // used, but the maxElementSize for the OuterFrame is ignored, make  // sure to get it right here!  if (aDesiredSize.maxElementSize) {    if ((NS_UNCONSTRAINEDSIZE == aReflowState.availableWidth) ||        (eStyleUnit_Percent ==         aReflowState.mStylePosition->mWidth.GetUnit())) {      // percent width springy down to 0 px      aDesiredSize.maxElementSize->width = 0;    }    else {      aDesiredSize.maxElementSize->width = aDesiredSize.width;    }    if ((NS_UNCONSTRAINEDSIZE == aReflowState.availableHeight) ||        (eStyleUnit_Percent ==         aReflowState.mStylePosition->mHeight.GetUnit())) {      // percent height springy down to 0px      aDesiredSize.maxElementSize->height = 0;    }    else {      aDesiredSize.maxElementSize->height = aDesiredSize.height;    }  }}