if (aAttribute == nsHTMLAtoms::type) { aHint = NS_STYLE_HINT_REFLOW; } else if (aAttribute == nsHTMLAtoms::compact) { aHint = NS_STYLE_HINT_CONTENT; } else if (!GetCommonMappedAttributesImpact(aAttribute, aHint)) { aHint = NS_STYLE_HINT_CONTENT; }
static const AttributeImpactEntry attributes[] = { { &nsHTMLAtoms::type, NS_STYLE_HINT_REFLOW }, { &nsHTMLAtoms::compact, NS_STYLE_HINT_CONTENT}, { nsnull, NS_STYLE_HINT_NONE} };  static const AttributeImpactEntry* const map[] = { attributes, sCommonAttributeMap, };  FindAttributeImpact(aAttribute, aHint, map, NS_ARRAY_LENGTH(map));
nsHTMLDirectoryElement::GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,                                                 nsChangeHint& aHint) const{  if (aAttribute == nsHTMLAtoms::type) {    aHint = NS_STYLE_HINT_REFLOW;  }  else if (aAttribute == nsHTMLAtoms::compact) {    aHint = NS_STYLE_HINT_CONTENT;  // XXX  }  else if (!GetCommonMappedAttributesImpact(aAttribute, aHint)) {    aHint = NS_STYLE_HINT_CONTENT;  }  return NS_OK;}