if (aAttribute == nsHTMLAtoms::align || aAttribute == nsHTMLAtoms::rows || aAttribute == nsHTMLAtoms::cols) { aHint = NS_STYLE_HINT_REFLOW; } else if (!GetCommonMappedAttributesImpact(aAttribute, aHint)) { aHint = NS_STYLE_HINT_CONTENT; }
static const AttributeImpactEntry attributes[] = { { &nsHTMLAtoms::align, NS_STYLE_HINT_REFLOW }, { &nsHTMLAtoms::rows, NS_STYLE_HINT_REFLOW }, { &nsHTMLAtoms::cols, NS_STYLE_HINT_REFLOW }, { nsnull, NS_STYLE_HINT_NONE } };
nsHTMLTextAreaElement::GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32 aModType,                                                nsChangeHint& aHint) const{  // XXX Bug 50280 - It is unclear why we need to do this here for   // rows and cols and why the AttributeChanged method in  // nsTextControlFrame does take care of the entire problem, but  // it doesn't and this makes things better  if (aAttribute == nsHTMLAtoms::align ||      aAttribute == nsHTMLAtoms::rows ||      aAttribute == nsHTMLAtoms::cols) {    aHint = NS_STYLE_HINT_REFLOW;  }  else if (!GetCommonMappedAttributesImpact(aAttribute, aHint)) {    aHint = NS_STYLE_HINT_CONTENT;  }  return NS_OK;}