Bug 569189. Remove unneeded QIs for style sheets, part 2. r=dbaron

This commit is contained in:
Craig Topper 2010-06-01 11:51:40 +12:00
parent 19b1dea37a
commit 758b19e355

View File

@ -634,12 +634,9 @@ NS_IMETHODIMP
CSSImportRuleImpl::GetStyleSheet(nsIDOMCSSStyleSheet * *aStyleSheet)
{
NS_ENSURE_ARG_POINTER(aStyleSheet);
if (!mChildSheet) {
*aStyleSheet = nsnull;
return NS_OK;
}
return CallQueryInterface(mChildSheet, aStyleSheet);
NS_IF_ADDREF(*aStyleSheet = mChildSheet);
return NS_OK;
}
nsCSSGroupRule::nsCSSGroupRule()