mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 849191 - Cleanup some ToDOMAnimatedString calls; r=dzbarsky
This commit is contained in:
parent
4d99e1ce9d
commit
5e8f58fb5f
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user