Bug 1691109 [wpt PR 27513] - Increase timeout duration for wpt/fetch/api/basic/keepal...
[gecko.git] / dom / svg / SVGAnimateTransformElement.h
blob425c125d623cacbddb49861c64814001eb7a5833
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);
17 namespace mozilla {
18 namespace dom {
20 class SVGAnimateTransformElement final : public SVGAnimationElement {
21 protected:
22 explicit SVGAnimateTransformElement(
23 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
25 SMILAnimationFunction mAnimationFunction;
26 friend nsresult(::NS_NewSVGAnimateTransformElement(
27 nsIContent** aResult,
28 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
30 virtual JSObject* WrapNode(JSContext* aCx,
31 JS::Handle<JSObject*> aGivenProto) override;
33 public:
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;
47 } // namespace dom
48 } // namespace mozilla
50 #endif // DOM_SVG_SVGANIMATETRANSFORMELEMENT_H_