Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/SVGAnimatedRect.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_SVGAnimatedRect_h
8
#define mozilla_dom_SVGAnimatedRect_h
9
10
#include "nsCycleCollectionParticipant.h"
11
#include "mozilla/dom/SVGRectBinding.h"
12
#include "mozilla/Attributes.h"
13
#include "mozilla/ErrorResult.h"
14
#include "nsWrapperCache.h"
15
#include "nsSVGElement.h"
16
17
class nsSVGViewBox;
18
19
namespace mozilla {
20
namespace dom {
21
22
class SVGAnimatedRect final : public nsWrapperCache
23
{
24
public:
25
  NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(SVGAnimatedRect)
26
  NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(SVGAnimatedRect)
27
28
  SVGAnimatedRect(nsSVGViewBox* aVal, nsSVGElement* aSVGElement);
29
30
  nsSVGElement* GetParentObject() const
31
0
  {
32
0
    return mSVGElement;
33
0
  }
34
35
  virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
36
37
  already_AddRefed<SVGIRect> GetBaseVal();
38
39
  already_AddRefed<SVGIRect> GetAnimVal();
40
41
private:
42
  virtual ~SVGAnimatedRect();
43
44
  nsSVGViewBox* mVal; // kept alive because it belongs to content
45
  RefPtr<nsSVGElement> mSVGElement;
46
};
47
48
} // namespace dom
49
} // namespace mozilla
50
51
#endif // mozilla_dom_SVGAnimatedRect_h
52