nsLineLayout::IsPercentageAwareReplacedElement(nsIPresContext *aPresContext,
nsLineLayout::IsPercentageAwareReplacedElement(nsPresContext *aPresContext,
nsLineLayout::IsPercentageAwareReplacedElement(nsIPresContext *aPresContext,                                                nsIFrame* aFrame){  if (aFrame->GetStateBits() & NS_FRAME_REPLACED_ELEMENT)  {    nsIAtom* frameType = aFrame->GetType();    if (nsLayoutAtoms::brFrame != frameType &&         nsLayoutAtoms::textFrame != frameType)    {      const nsStyleMargin* margin = aFrame->GetStyleMargin();      if (IsPercentageUnitSides(&margin->mMargin)) {        return PR_TRUE;      }      const nsStylePadding* padding = aFrame->GetStylePadding();      if (IsPercentageUnitSides(&padding->mPadding)) {        return PR_TRUE;      }      const nsStyleBorder* border = aFrame->GetStyleBorder();      if (IsPercentageUnitSides(&border->mBorder)) {        return PR_TRUE;      }      const nsStylePosition* pos = aFrame->GetStylePosition();      if (eStyleUnit_Percent == pos->mWidth.GetUnit()        || eStyleUnit_Percent == pos->mMaxWidth.GetUnit()        || eStyleUnit_Percent == pos->mMinWidth.GetUnit()        || eStyleUnit_Percent == pos->mHeight.GetUnit()        || eStyleUnit_Percent == pos->mMinHeight.GetUnit()        || eStyleUnit_Percent == pos->mMaxHeight.GetUnit()        || IsPercentageUnitSides(&pos->mOffset)) { // XXX need more here!!!        return PR_TRUE;      }    }  }  return PR_FALSE;}