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