mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1062106 part 4 - Remove GetTargetAttributeType() from svg element. r=birtles
MozReview-Commit-ID: L6UDAJUGnlx --HG-- extra : rebase_source : 3dacb4d4fd7633fd45912a2cb3b28fd0fc248311
This commit is contained in:
parent
2558f6837e
commit
a705dd5269
@ -51,15 +51,6 @@ SVGAnimateMotionElement::GetTargetAttributeName(int32_t *aNamespaceID,
|
||||
return true;
|
||||
}
|
||||
|
||||
nsSMILTargetAttrType
|
||||
SVGAnimateMotionElement::GetTargetAttributeType() const
|
||||
{
|
||||
// <animateMotion> doesn't take an attributeType, since it doesn't target an
|
||||
// 'attribute' per se. We'll just return 'XML' for simplicity. (This just
|
||||
// needs to match what we expect in nsSVGElement::GetAnimAttr.)
|
||||
return eSMILTargetAttrType_XML;
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
|
@ -37,7 +37,6 @@ public:
|
||||
virtual nsSMILAnimationFunction& AnimationFunction() override;
|
||||
virtual bool GetTargetAttributeName(int32_t *aNamespaceID,
|
||||
nsIAtom **aLocalName) const override;
|
||||
virtual nsSMILTargetAttrType GetTargetAttributeType() const override;
|
||||
|
||||
// nsSVGElement
|
||||
virtual nsIAtom* GetPathDataAttrName() const override {
|
||||
|
@ -112,21 +112,6 @@ SVGAnimationElement::GetTargetAttributeName(int32_t *aNamespaceID,
|
||||
aNamespaceID, aLocalName));
|
||||
}
|
||||
|
||||
nsSMILTargetAttrType
|
||||
SVGAnimationElement::GetTargetAttributeType() const
|
||||
{
|
||||
nsIContent::AttrValuesArray typeValues[] = { &nsGkAtoms::css,
|
||||
&nsGkAtoms::XML,
|
||||
nullptr};
|
||||
nsSMILTargetAttrType smilTypes[] = { eSMILTargetAttrType_CSS,
|
||||
eSMILTargetAttrType_XML };
|
||||
int32_t index = FindAttrValueIn(kNameSpaceID_None,
|
||||
nsGkAtoms::attributeType,
|
||||
typeValues,
|
||||
eCaseMatters);
|
||||
return (index >= 0) ? smilTypes[index] : eSMILTargetAttrType_auto;
|
||||
}
|
||||
|
||||
nsSMILTimedElement&
|
||||
SVGAnimationElement::TimedElement()
|
||||
{
|
||||
|
@ -66,7 +66,6 @@ public:
|
||||
Element* GetTargetElementContent();
|
||||
virtual bool GetTargetAttributeName(int32_t* aNamespaceID,
|
||||
nsIAtom** aLocalName) const;
|
||||
virtual nsSMILTargetAttrType GetTargetAttributeType() const;
|
||||
nsSMILTimedElement& TimedElement();
|
||||
nsSMILTimeContainer* GetTimeContainer();
|
||||
virtual nsSMILAnimationFunction& AnimationFunction() = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user