Bug 1062106 part 4 - Remove GetTargetAttributeType() from svg element. r=birtles

MozReview-Commit-ID: L6UDAJUGnlx

--HG--
extra : rebase_source : 11f1c57290f7a4b9169a9067bc8e97c2a2b7335c
This commit is contained in:
Mantaroh Yoshinaga 2017-03-21 15:45:58 +09:00
parent 3b7e3f9116
commit d0734d5075
4 changed files with 0 additions and 26 deletions

View File

@ -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

View File

@ -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 {

View File

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

View File

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