else { aPresContext->GetDefaultFont(mFont); aPresContext->GetDefaultFixedFont(mFixedFont); mFlags = NS_STYLE_FONT_DEFAULT; }
mMargin.Reset(); mPadding.Reset(); nsStyleCoord  medium(NS_STYLE_BORDER_WIDTH_MEDIUM, eStyleUnit_Enumerated); mBorder.SetLeft(medium); mBorder.SetTop(medium); mBorder.SetRight(medium); mBorder.SetBottom(medium);   mBorderStyle[0] = NS_STYLE_BORDER_STYLE_NONE; mBorderStyle[1] = NS_STYLE_BORDER_STYLE_NONE; mBorderStyle[2] = NS_STYLE_BORDER_STYLE_NONE; mBorderStyle[3] = NS_STYLE_BORDER_STYLE_NONE;   mBorderColor[0] = NS_RGB(0, 0, 0); mBorderColor[1] = NS_RGB(0, 0, 0); mBorderColor[2] = NS_RGB(0, 0, 0); mBorderColor[3] = NS_RGB(0, 0, 0);  mBorderRadius.SetCoordValue(0);  mOutlineWidth = medium; mOutlineStyle = NS_STYLE_BORDER_STYLE_NONE; mOutlineColor = NS_RGB(0, 0, 0);  mHasCachedMargin = PR_FALSE; mHasCachedPadding = PR_FALSE; mHasCachedBorder = PR_FALSE; mHasCachedOutline = PR_FALSE;
void StyleFontImpl::ResetFrom(const nsStyleFont* aParent, nsIPresContext* aPresContext){  if (nsnull != aParent) {    mFont = aParent->mFont;    mFixedFont = aParent->mFixedFont;    mFlags = aParent->mFlags;  }  else {    aPresContext->GetDefaultFont(mFont);    aPresContext->GetDefaultFixedFont(mFixedFont);    mFlags = NS_STYLE_FONT_DEFAULT;  }}