Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/SVGAnimatedNumber.h
Line
Count
Source (jump to first uncovered line)
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/. */
6
7
#ifndef mozilla_dom_SVGAnimatedNumber_h
8
#define mozilla_dom_SVGAnimatedNumber_h
9
10
#include "nsISupports.h"
11
#include "nsWrapperCache.h"
12
13
#include "nsSVGElement.h"
14
15
namespace mozilla {
16
namespace dom {
17
18
class SVGAnimatedNumber : public nsISupports
19
                        , public nsWrapperCache
20
{
21
public:
22
  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
23
  NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(SVGAnimatedNumber)
24
25
  nsSVGElement* GetParentObject() const
26
0
  {
27
0
    return mSVGElement;
28
0
  }
29
30
  JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
31
    final;
32
33
  virtual float BaseVal() = 0;
34
  virtual void SetBaseVal(float aBaseVal) = 0;
35
  virtual float AnimVal() = 0;
36
37
protected:
38
  explicit SVGAnimatedNumber(nsSVGElement* aSVGElement)
39
    : mSVGElement(aSVGElement)
40
0
  {
41
0
  }
42
0
  virtual ~SVGAnimatedNumber() {};
43
44
  RefPtr<nsSVGElement> mSVGElement;
45
};
46
47
} // namespace dom
48
} // namespace mozilla
49
50
#endif // mozilla_dom_SVGAnimatedNumber_h