From 5e8f58fb5f68679af7b0d3e565975689a53779c1 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 10 Mar 2013 08:58:53 +0100 Subject: [PATCH] Bug 849191 - Cleanup some ToDOMAnimatedString calls; r=dzbarsky --- content/svg/content/src/SVGAElement.cpp | 8 ++------ content/svg/content/src/SVGPatternElement.cpp | 4 +--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/content/svg/content/src/SVGAElement.cpp b/content/svg/content/src/SVGAElement.cpp index 037d8df48762..0d60df8ecb74 100644 --- a/content/svg/content/src/SVGAElement.cpp +++ b/content/svg/content/src/SVGAElement.cpp @@ -68,9 +68,7 @@ SVGAElement::GetHref(nsIDOMSVGAnimatedString * *aHref) already_AddRefed SVGAElement::Href() { - nsCOMPtr 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 SVGAElement::Target() { - nsCOMPtr target; - mStringAttributes[TARGET].ToDOMAnimatedString(getter_AddRefs(target), this); - return target.forget(); + return mStringAttributes[TARGET].ToDOMAnimatedString(this); } void diff --git a/content/svg/content/src/SVGPatternElement.cpp b/content/svg/content/src/SVGPatternElement.cpp index 7a4f09d9f47b..d40173940e17 100644 --- a/content/svg/content/src/SVGPatternElement.cpp +++ b/content/svg/content/src/SVGPatternElement.cpp @@ -152,9 +152,7 @@ SVGPatternElement::GetHref(nsIDOMSVGAnimatedString * *aHref) already_AddRefed SVGPatternElement::Href() { - nsCOMPtr href; - mStringAttributes[HREF].ToDOMAnimatedString(getter_AddRefs(href), this); - return href.forget(); + return mStringAttributes[HREF].ToDOMAnimatedString(this); } //----------------------------------------------------------------------