Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/SVGTextPositioningElement.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_SVGTextPositioningElement_h
8
#define mozilla_dom_SVGTextPositioningElement_h
9
10
#include "mozilla/dom/SVGTextContentElement.h"
11
#include "SVGAnimatedLengthList.h"
12
#include "SVGAnimatedNumberList.h"
13
14
namespace mozilla {
15
class SVGAnimatedLengthList;
16
class DOMSVGAnimatedLengthList;
17
class DOMSVGAnimatedNumberList;
18
19
namespace dom {
20
typedef SVGTextContentElement SVGTextPositioningElementBase;
21
22
class SVGTextPositioningElement : public SVGTextPositioningElementBase
23
{
24
public:
25
  // WebIDL
26
  already_AddRefed<DOMSVGAnimatedLengthList> X();
27
  already_AddRefed<DOMSVGAnimatedLengthList> Y();
28
  already_AddRefed<DOMSVGAnimatedLengthList> Dx();
29
  already_AddRefed<DOMSVGAnimatedLengthList> Dy();
30
  already_AddRefed<DOMSVGAnimatedNumberList> Rotate();
31
32
protected:
33
34
  explicit SVGTextPositioningElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
35
    : SVGTextPositioningElementBase(std::move(aNodeInfo))
36
0
  {}
37
38
  virtual LengthListAttributesInfo GetLengthListInfo() override;
39
  virtual NumberListAttributesInfo GetNumberListInfo() override;
40
41
  enum { ATTR_X, ATTR_Y, ATTR_DX, ATTR_DY };
42
  SVGAnimatedLengthList mLengthListAttributes[4];
43
  static LengthListInfo sLengthListInfo[4];
44
45
  enum { ROTATE };
46
  SVGAnimatedNumberList mNumberListAttributes[1];
47
  static NumberListInfo sNumberListInfo[1];
48
};
49
50
} // namespace dom
51
} // namespace mozilla
52
53
#endif // mozilla_dom_SVGTextPositioningElement_h