2013-07-01 11:03:04 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2020-07-15 02:40:05 +03:00
|
|
|
#ifndef DOM_SVG_DOMSVGANIMATEDNUMBER_H_
|
|
|
|
#define DOM_SVG_DOMSVGANIMATEDNUMBER_H_
|
2013-07-01 11:03:04 +04:00
|
|
|
|
|
|
|
#include "nsWrapperCache.h"
|
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
#include "SVGElement.h"
|
2013-07-01 11:03:04 +04:00
|
|
|
|
2022-05-09 23:41:15 +03:00
|
|
|
namespace mozilla::dom {
|
2013-07-01 11:03:04 +04:00
|
|
|
|
2020-08-08 01:50:28 +03:00
|
|
|
class DOMSVGAnimatedNumber : public nsWrapperCache {
|
2013-07-01 11:03:04 +04:00
|
|
|
public:
|
2020-08-08 01:50:28 +03:00
|
|
|
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(DOMSVGAnimatedNumber)
|
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(DOMSVGAnimatedNumber)
|
2013-07-01 11:03:04 +04:00
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
SVGElement* GetParentObject() const { return mSVGElement; }
|
2013-07-01 11:03:04 +04:00
|
|
|
|
2018-02-09 08:22:43 +03:00
|
|
|
JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) final;
|
2013-07-01 11:03:04 +04:00
|
|
|
|
|
|
|
virtual float BaseVal() = 0;
|
|
|
|
virtual void SetBaseVal(float aBaseVal) = 0;
|
|
|
|
virtual float AnimVal() = 0;
|
|
|
|
|
|
|
|
protected:
|
2019-03-19 03:01:03 +03:00
|
|
|
explicit DOMSVGAnimatedNumber(SVGElement* aSVGElement)
|
2013-07-01 11:03:04 +04:00
|
|
|
: mSVGElement(aSVGElement) {}
|
2019-04-18 01:38:02 +03:00
|
|
|
virtual ~DOMSVGAnimatedNumber() = default;
|
2013-07-01 11:03:04 +04:00
|
|
|
|
2018-12-21 11:58:14 +03:00
|
|
|
RefPtr<SVGElement> mSVGElement;
|
2013-07-01 11:03:04 +04:00
|
|
|
};
|
|
|
|
|
2022-05-09 23:41:15 +03:00
|
|
|
} // namespace mozilla::dom
|
2013-07-01 11:03:04 +04:00
|
|
|
|
2020-07-15 02:40:05 +03:00
|
|
|
#endif // DOM_SVG_DOMSVGANIMATEDNUMBER_H_
|