Bug 602759 part 17 - Remove unnecessary BeforeSetAttr overrides; r=jwatt

This commit is contained in:
Brian Birtles 2011-09-25 22:05:02 +01:00
parent d2271db96e
commit 8398e488ba
6 changed files with 0 additions and 51 deletions

View File

@ -94,20 +94,6 @@ nsSVGGradientElement::nsSVGGradientElement(already_AddRefed<nsINodeInfo> 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

View File

@ -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<mozilla::SVGAnimatedTransformList> mGradientTransform;
};

View File

@ -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);
}

View File

@ -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<mozilla::SVGAnimatedTransformList> mTransforms;

View File

@ -98,20 +98,6 @@ nsSVGPatternElement::nsSVGPatternElement(already_AddRefed<nsINodeInfo> 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

View File

@ -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();