if (aAttribute == nsHTMLAtoms::color) { aHint = NS_STYLE_HINT_VISUAL; } else if ((aAttribute == nsHTMLAtoms::face) || (aAttribute == nsHTMLAtoms::pointSize) || (aAttribute == nsHTMLAtoms::size) || (aAttribute == nsHTMLAtoms::fontWeight)) { aHint = NS_STYLE_HINT_REFLOW; } else if (!GetCommonMappedAttributesImpact(aAttribute, aHint)) { aHint = NS_STYLE_HINT_CONTENT; }
static const AttributeImpactEntry attributes[] = { { &nsHTMLAtoms::face, NS_STYLE_HINT_REFLOW }, { &nsHTMLAtoms::pointSize, NS_STYLE_HINT_REFLOW }, { &nsHTMLAtoms::size, NS_STYLE_HINT_REFLOW }, { &nsHTMLAtoms::fontWeight, NS_STYLE_HINT_REFLOW }, { &nsHTMLAtoms::color, NS_STYLE_HINT_VISUAL }, };
nsHTMLFontElement::GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,                                            nsChangeHint& aHint) const{  if (aAttribute == nsHTMLAtoms::color) {    aHint = NS_STYLE_HINT_VISUAL;  }  else if ((aAttribute == nsHTMLAtoms::face) ||           (aAttribute == nsHTMLAtoms::pointSize) ||            (aAttribute == nsHTMLAtoms::size) ||           (aAttribute == nsHTMLAtoms::fontWeight)) {    aHint = NS_STYLE_HINT_REFLOW;  }  else if (!GetCommonMappedAttributesImpact(aAttribute, aHint)) {    aHint = NS_STYLE_HINT_CONTENT;  }  return NS_OK;}