Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/SVGTextElement.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_SVGTextElement_h
8
#define mozilla_dom_SVGTextElement_h
9
10
#include "mozilla/dom/SVGTextPositioningElement.h"
11
12
nsresult NS_NewSVGTextElement(nsIContent **aResult,
13
                              already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
14
15
namespace mozilla {
16
namespace dom {
17
18
typedef SVGTextPositioningElement SVGTextElementBase;
19
20
class SVGTextElement final : public SVGTextElementBase
21
{
22
protected:
23
  explicit SVGTextElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
24
  virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
25
26
  friend nsresult (::NS_NewSVGTextElement(nsIContent **aResult,
27
                                          already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
28
29
public:
30
  // nsIContent interface
31
  NS_IMETHOD_(bool) IsAttributeMapped(const nsAtom* aAttribute) const override;
32
33
  virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
34
35
protected:
36
  virtual EnumAttributesInfo GetEnumInfo() override;
37
  virtual LengthAttributesInfo GetLengthInfo() override;
38
39
  nsSVGEnum mEnumAttributes[1];
40
  virtual nsSVGEnum* EnumAttributes() override
41
0
    { return mEnumAttributes; }
42
43
  nsSVGLength2 mLengthAttributes[1];
44
  virtual nsSVGLength2* LengthAttributes() override
45
0
    { return mLengthAttributes; }
46
};
47
48
} // namespace dom
49
} // namespace mozilla
50
51
#endif // mozilla_dom_SVGTextElement_h