Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/SVGTextPositioningElementBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM SVGTextPositioningElement.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_SVGTextPositioningElementBinding_h
4
#define mozilla_dom_SVGTextPositioningElementBinding_h
5
6
#include "GeckoProfiler.h"
7
#include "js/RootingAPI.h"
8
#include "jspubtd.h"
9
#include "mozilla/ErrorResult.h"
10
#include "mozilla/dom/BindingDeclarations.h"
11
#include "mozilla/dom/Nullable.h"
12
#include "mozilla/dom/PrototypeList.h"
13
14
namespace mozilla {
15
namespace dom {
16
17
struct NativePropertyHooks;
18
class ProtoAndIfaceCache;
19
class SVGTextPositioningElement;
20
struct SVGTextPositioningElementAtoms;
21
22
} // namespace dom
23
} // namespace mozilla
24
25
namespace mozilla {
26
namespace dom {
27
28
namespace SVGTextPositioningElement_Binding {
29
30
  typedef mozilla::dom::SVGTextPositioningElement NativeType;
31
32
  // We declare this as an array so that retrieving a pointer to this
33
  // binding's property hooks only requires compile/link-time resolvable
34
  // address arithmetic.  Declaring it as a pointer instead would require
35
  // doing a run-time load to fetch a pointer to this binding's property
36
  // hooks.  And then structures which embedded a pointer to this structure
37
  // would require a run-time load for proper initialization, which would
38
  // then induce static constructors.  Lots of static constructors.
39
  extern const NativePropertyHooks sNativePropertyHooks[];
40
41
  void
42
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
43
44
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
45
0
  {
46
0
    /* Get the interface prototype object for this class.  This will create the
47
0
       object as needed. */
48
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGTextPositioningElement,
49
0
                                       &CreateInterfaceObjects,
50
0
                                       /* aDefineOnGlobal = */ true);
51
0
52
0
  }
53
54
  JSObject*
55
  GetProtoObject(JSContext* aCx);
56
57
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
58
0
  {
59
0
    /* Get the interface object for this class.  This will create the object as
60
0
       needed. */
61
0
62
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::SVGTextPositioningElement,
63
0
                                       &CreateInterfaceObjects,
64
0
                                       aDefineOnGlobal);
65
0
  }
66
67
  JSObject*
68
  GetConstructorObject(JSContext* aCx);
69
70
} // namespace SVGTextPositioningElement_Binding
71
72
73
74
} // namespace dom
75
} // namespace mozilla
76
77
#endif // mozilla_dom_SVGTextPositioningElementBinding_h