static PRBool HaveFixedSize(const struct nsStylePosition& aStylePosition) {    nsStyleUnit widthUnit = aStylePosition.mWidth.GetUnit(); nsStyleUnit heightUnit = aStylePosition.mHeight.GetUnit();  return ((widthUnit  == eStyleUnit_Coord || widthUnit  == eStyleUnit_Percent) && (heightUnit == eStyleUnit_Coord || heightUnit == eStyleUnit_Percent));
inline PRBool HaveFixedSize(const nsHTMLReflowState& aReflowState) { NS_ASSERTION(aReflowState.mStylePosition, "crappy reflowState - null stylePosition");        nsStyleUnit heightUnit = (*(aReflowState.mStylePosition)).mHeight.GetUnit(); nsStyleUnit widthUnit = (*(aReflowState.mStylePosition)).mWidth.GetUnit(); return ((eStyleUnit_Percent == heightUnit && NS_UNCONSTRAINEDSIZE == aReflowState.mComputedHeight) || (eStyleUnit_Percent == widthUnit && (NS_UNCONSTRAINEDSIZE == aReflowState.mComputedWidth || 0 == aReflowState.mComputedWidth))) ? PR_FALSE : HaveFixedSize(*(aReflowState.mStylePosition));
static PRBool HaveFixedSize(const struct nsStylePosition& aStylePosition){  // check the width and height values in the reflow state's style struct  // - if width and height are specified as either coord or percentage, then  //   the size of the image frame is constrained  nsStyleUnit widthUnit = aStylePosition.mWidth.GetUnit();  nsStyleUnit heightUnit = aStylePosition.mHeight.GetUnit();  return ((widthUnit  == eStyleUnit_Coord ||           widthUnit  == eStyleUnit_Percent) &&          (heightUnit == eStyleUnit_Coord ||           heightUnit == eStyleUnit_Percent));}