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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user