1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef DOM_SVG_SVGANIMATETRANSFORMELEMENT_H_
8 #define DOM_SVG_SVGANIMATETRANSFORMELEMENT_H_
10 #include "mozilla/Attributes.h"
11 #include "mozilla/dom/SVGAnimationElement.h"
12 #include "mozilla/SMILAnimationFunction.h"
14 nsresult
NS_NewSVGAnimateTransformElement(
15 nsIContent
** aResult
, already_AddRefed
<mozilla::dom::NodeInfo
>&& aNodeInfo
);
20 class SVGAnimateTransformElement final
: public SVGAnimationElement
{
22 explicit SVGAnimateTransformElement(
23 already_AddRefed
<mozilla::dom::NodeInfo
>&& aNodeInfo
);
25 SMILAnimationFunction mAnimationFunction
;
26 friend nsresult(::NS_NewSVGAnimateTransformElement(
28 already_AddRefed
<mozilla::dom::NodeInfo
>&& aNodeInfo
));
30 virtual JSObject
* WrapNode(JSContext
* aCx
,
31 JS::Handle
<JSObject
*> aGivenProto
) override
;
34 // nsINode specializations
35 virtual nsresult
Clone(dom::NodeInfo
*, nsINode
** aResult
) const override
;
37 // Element specializations
38 virtual bool ParseAttribute(int32_t aNamespaceID
, nsAtom
* aAttribute
,
39 const nsAString
& aValue
,
40 nsIPrincipal
* aMaybeScriptedPrincipal
,
41 nsAttrValue
& aResult
) override
;
43 // SVGAnimationElement
44 virtual SMILAnimationFunction
& AnimationFunction() override
;
48 } // namespace mozilla
50 #endif // DOM_SVG_SVGANIMATETRANSFORMELEMENT_H_