mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 602759 part 17 - Remove unnecessary BeforeSetAttr overrides; r=jwatt
This commit is contained in:
parent
d2271db96e
commit
8398e488ba
@ -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
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user