Bug 569719 part 9: remove return value from css::Declaration methods that always return NS_OK, and change GetCSSDeclaration to return a css::Declaration instead of an nsresult. r=dbaron

This commit is contained in:
Zack Weinberg
2010-07-23 11:00:34 -07:00
parent c90f985295
commit 797a393635
15 changed files with 130 additions and 203 deletions

View File

@@ -1217,10 +1217,8 @@ nsHTMLParanoidFragmentSink::SanitizeStyleRule(nsICSSStyleRule *aRule, nsAutoStri
aRuleText.Truncate();
css::Declaration *style = aRule->GetDeclaration();
if (style) {
nsresult rv = style->RemoveProperty(eCSSProperty_binding);
if (NS_SUCCEEDED(rv)) {
style->ToString(aRuleText);
}
style->RemoveProperty(eCSSProperty_binding);
style->ToString(aRuleText);
}
}