if (nsnull != aParent) { mFont = aParent->mFont; mFixedFont = aParent->mFixedFont; mFlags = aParent->mFlags;
mMarkerOffset.Reset(); mContentCount = 0; DELETE_ARRAY_IF(mContents); mIncrementCount = 0; DELETE_ARRAY_IF(mIncrements); mResetCount = 0; DELETE_ARRAY_IF(mResets);   if (aParent) { if (NS_SUCCEEDED(AllocateQuotes(aParent->mQuotesCount))) { PRUint32 ix = (mQuotesCount * 2); while (0 < ix--) { mQuotes[ix] = aParent->mQuotes[ix]; } }
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;  }}