if (declaration) { hint = declaration->GetStyleImpact(); }
if (declaration) { hint = declaration->GetStyleImpact();
static PRInt32 GetStyleImpactFrom(const nsHTMLValue& aValue){  PRInt32 hint = NS_STYLE_HINT_NONE;  if (eHTMLUnit_ISupports == aValue.GetUnit()) {    nsCOMPtr<nsISupports> supports(dont_AddRef(aValue.GetISupportsValue()));    if (supports) {      nsCOMPtr<nsICSSStyleRule> cssRule(do_QueryInterface(supports));      if (cssRule) {        nsCSSDeclaration* declaration = cssRule->GetDeclaration();        if (declaration) {          hint = declaration->GetStyleImpact();        }      }    }  }  return hint;}