Bug 849191 - Cleanup some ToDOMAnimatedString calls; r=dzbarsky

This commit is contained in:
Ms2ger 2013-03-10 08:58:53 +01:00
parent 4d99e1ce9d
commit 5e8f58fb5f
2 changed files with 3 additions and 9 deletions

View File

@ -68,9 +68,7 @@ SVGAElement::GetHref(nsIDOMSVGAnimatedString * *aHref)
already_AddRefed<nsIDOMSVGAnimatedString>
SVGAElement::Href()
{
nsCOMPtr<nsIDOMSVGAnimatedString> href;
mStringAttributes[HREF].ToDOMAnimatedString(getter_AddRefs(href), this);
return href.forget();
return mStringAttributes[HREF].ToDOMAnimatedString(this);
}
//----------------------------------------------------------------------
@ -99,9 +97,7 @@ NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGAElement)
already_AddRefed<nsIDOMSVGAnimatedString>
SVGAElement::Target()
{
nsCOMPtr<nsIDOMSVGAnimatedString> target;
mStringAttributes[TARGET].ToDOMAnimatedString(getter_AddRefs(target), this);
return target.forget();
return mStringAttributes[TARGET].ToDOMAnimatedString(this);
}
void

View File

@ -152,9 +152,7 @@ SVGPatternElement::GetHref(nsIDOMSVGAnimatedString * *aHref)
already_AddRefed<nsIDOMSVGAnimatedString>
SVGPatternElement::Href()
{
nsCOMPtr<nsIDOMSVGAnimatedString> href;
mStringAttributes[HREF].ToDOMAnimatedString(getter_AddRefs(href), this);
return href.forget();
return mStringAttributes[HREF].ToDOMAnimatedString(this);
}
//----------------------------------------------------------------------