if (nsnull != aParent) { mFont = aParent->mFont; mFixedFont = aParent->mFixedFont; mFlags = aParent->mFlags;
if (! kWidthsInitialized) { float pixelsToTwips = 20.0f; if (aPresContext) { aPresContext->GetPixelsToTwips(&pixelsToTwips); } kBorderWidths[NS_STYLE_BORDER_WIDTH_THIN] = NSIntPixelsToTwips(1, pixelsToTwips); kBorderWidths[NS_STYLE_BORDER_WIDTH_MEDIUM] = NSIntPixelsToTwips(3, pixelsToTwips); kBorderWidths[NS_STYLE_BORDER_WIDTH_THICK] = NSIntPixelsToTwips(5, pixelsToTwips); kWidthsInitialized = PR_TRUE;
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;  }}