Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/CSSRuleBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM CSSRule.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_CSSRuleBinding_h
4
#define mozilla_dom_CSSRuleBinding_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
16
namespace css {
17
18
class Rule;
19
struct RuleAtoms;
20
21
} // namespace css
22
23
namespace dom {
24
25
struct NativePropertyHooks;
26
class ProtoAndIfaceCache;
27
28
} // namespace dom
29
30
} // namespace mozilla
31
32
namespace mozilla {
33
namespace dom {
34
35
namespace CSSRule_Binding {
36
37
  typedef mozilla::css::Rule NativeType;
38
39
  static const uint16_t STYLE_RULE = 1;
40
  static const uint16_t CHARSET_RULE = 2;
41
  static const uint16_t IMPORT_RULE = 3;
42
  static const uint16_t MEDIA_RULE = 4;
43
  static const uint16_t FONT_FACE_RULE = 5;
44
  static const uint16_t PAGE_RULE = 6;
45
  static const uint16_t NAMESPACE_RULE = 10;
46
  static const uint16_t KEYFRAMES_RULE = 7;
47
  static const uint16_t KEYFRAME_RULE = 8;
48
  static const uint16_t COUNTER_STYLE_RULE = 11;
49
  static const uint16_t SUPPORTS_RULE = 12;
50
  static const uint16_t DOCUMENT_RULE = 13;
51
  static const uint16_t FONT_FEATURE_VALUES_RULE = 14;
52
  // We declare this as an array so that retrieving a pointer to this
53
  // binding's property hooks only requires compile/link-time resolvable
54
  // address arithmetic.  Declaring it as a pointer instead would require
55
  // doing a run-time load to fetch a pointer to this binding's property
56
  // hooks.  And then structures which embedded a pointer to this structure
57
  // would require a run-time load for proper initialization, which would
58
  // then induce static constructors.  Lots of static constructors.
59
  extern const NativePropertyHooks sNativePropertyHooks[];
60
61
  void
62
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
63
64
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
65
0
  {
66
0
    /* Get the interface prototype object for this class.  This will create the
67
0
       object as needed. */
68
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::CSSRule,
69
0
                                       &CreateInterfaceObjects,
70
0
                                       /* aDefineOnGlobal = */ true);
71
0
72
0
  }
73
74
  JSObject*
75
  GetProtoObject(JSContext* aCx);
76
77
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
78
0
  {
79
0
    /* Get the interface object for this class.  This will create the object as
80
0
       needed. */
81
0
82
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::CSSRule,
83
0
                                       &CreateInterfaceObjects,
84
0
                                       aDefineOnGlobal);
85
0
  }
86
87
  JSObject*
88
  GetConstructorObject(JSContext* aCx);
89
90
} // namespace CSSRule_Binding
91
92
93
94
} // namespace dom
95
} // namespace mozilla
96
97
#endif // mozilla_dom_CSSRuleBinding_h