diff --git a/content/svg/content/src/nsSVGGradientElement.cpp b/content/svg/content/src/nsSVGGradientElement.cpp index 02ad42f02af3..1d81f993d42c 100644 --- a/content/svg/content/src/nsSVGGradientElement.cpp +++ b/content/svg/content/src/nsSVGGradientElement.cpp @@ -94,20 +94,6 @@ nsSVGGradientElement::nsSVGGradientElement(already_AddRefed aNodeIn { } -nsresult -nsSVGGradientElement::BeforeSetAttr(PRInt32 aNamespaceID, nsIAtom* aName, - const nsAString* aValue, PRBool aNotify) -{ - if (aNamespaceID == kNameSpaceID_None && - aName == nsGkAtoms::gradientTransform && - !mGradientTransform && - !(mGradientTransform = new SVGAnimatedTransformList())) - return NS_ERROR_OUT_OF_MEMORY; - - return nsSVGGradientElementBase::BeforeSetAttr(aNamespaceID, aName, - aValue, aNotify); -} - //---------------------------------------------------------------------- // nsSVGElement methods diff --git a/content/svg/content/src/nsSVGGradientElement.h b/content/svg/content/src/nsSVGGradientElement.h index 28d2f9a02d51..b58be3cdfa14 100644 --- a/content/svg/content/src/nsSVGGradientElement.h +++ b/content/svg/content/src/nsSVGGradientElement.h @@ -92,9 +92,6 @@ protected: nsSVGString mStringAttributes[1]; static StringInfo sStringInfo[1]; - virtual nsresult BeforeSetAttr(PRInt32 aNamespaceID, nsIAtom* aName, - const nsAString* aValue, PRBool aNotify); - // nsIDOMSVGGradientElement values nsAutoPtr mGradientTransform; }; diff --git a/content/svg/content/src/nsSVGGraphicElement.cpp b/content/svg/content/src/nsSVGGraphicElement.cpp index d2daaf42ca9d..d2490988c60d 100644 --- a/content/svg/content/src/nsSVGGraphicElement.cpp +++ b/content/svg/content/src/nsSVGGraphicElement.cpp @@ -220,17 +220,3 @@ nsSVGGraphicElement::GetAnimatedTransformList() } return mTransforms; } - -nsresult -nsSVGGraphicElement::BeforeSetAttr(PRInt32 aNamespaceID, nsIAtom* aName, - const nsAString* aValue, PRBool aNotify) -{ - if (aNamespaceID == kNameSpaceID_None && - aName == nsGkAtoms::transform && - !mTransforms && - !(mTransforms = new SVGAnimatedTransformList())) - return NS_ERROR_OUT_OF_MEMORY; - - return nsSVGGraphicElementBase::BeforeSetAttr(aNamespaceID, aName, - aValue, aNotify); -} diff --git a/content/svg/content/src/nsSVGGraphicElement.h b/content/svg/content/src/nsSVGGraphicElement.h index 964a6b3aa650..f502e9060d98 100644 --- a/content/svg/content/src/nsSVGGraphicElement.h +++ b/content/svg/content/src/nsSVGGraphicElement.h @@ -73,9 +73,6 @@ public: protected: // nsSVGElement overrides virtual PRBool IsEventName(nsIAtom* aName); - - virtual nsresult BeforeSetAttr(PRInt32 aNamespaceID, nsIAtom* aName, - const nsAString* aValue, PRBool aNotify); nsAutoPtr mTransforms; diff --git a/content/svg/content/src/nsSVGPatternElement.cpp b/content/svg/content/src/nsSVGPatternElement.cpp index b2c640736245..5956adcf46c6 100644 --- a/content/svg/content/src/nsSVGPatternElement.cpp +++ b/content/svg/content/src/nsSVGPatternElement.cpp @@ -98,20 +98,6 @@ nsSVGPatternElement::nsSVGPatternElement(already_AddRefed aNodeInfo { } -nsresult -nsSVGPatternElement::BeforeSetAttr(PRInt32 aNamespaceID, nsIAtom* aName, - const nsAString* aValue, PRBool aNotify) -{ - if (aNamespaceID == kNameSpaceID_None && - aName == nsGkAtoms::patternTransform && - !mPatternTransform && - !(mPatternTransform = new SVGAnimatedTransformList())) - return NS_ERROR_OUT_OF_MEMORY; - - return nsSVGPatternElementBase::BeforeSetAttr(aNamespaceID, aName, - aValue, aNotify); -} - //---------------------------------------------------------------------- // nsIDOMNode method diff --git a/content/svg/content/src/nsSVGPatternElement.h b/content/svg/content/src/nsSVGPatternElement.h index 10c2048cf506..79bc1f0b8079 100644 --- a/content/svg/content/src/nsSVGPatternElement.h +++ b/content/svg/content/src/nsSVGPatternElement.h @@ -100,9 +100,6 @@ public: } protected: - virtual nsresult BeforeSetAttr(PRInt32 aNamespaceID, nsIAtom* aName, - const nsAString* aValue, PRBool aNotify); - virtual LengthAttributesInfo GetLengthInfo(); virtual EnumAttributesInfo GetEnumInfo(); virtual nsSVGViewBox *GetViewBox();