Bug 1698238 return default dictionary from GetUserMediaRequest#getConstraints() if...
[gecko.git] / dom / svg / SVGAnimateElement.h
blob5b68766b909dc4411cc7471d097643ae0c6c4077
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_SVGANIMATEELEMENT_H_
8 #define DOM_SVG_SVGANIMATEELEMENT_H_
10 #include "mozilla/Attributes.h"
11 #include "mozilla/dom/SVGAnimationElement.h"
12 #include "mozilla/SMILAnimationFunction.h"
14 nsresult NS_NewSVGAnimateElement(
15 nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
17 namespace mozilla {
18 namespace dom {
20 class SVGAnimateElement final : public SVGAnimationElement {
21 protected:
22 explicit SVGAnimateElement(
23 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
25 SMILAnimationFunction mAnimationFunction;
26 friend nsresult(::NS_NewSVGAnimateElement(
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
35 virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
37 // SVGAnimationElement
38 virtual SMILAnimationFunction& AnimationFunction() override;
41 } // namespace dom
42 } // namespace mozilla
44 #endif // DOM_SVG_SVGANIMATEELEMENT_H_