Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dom/bindings/StyleSheetApplicableStateChangeEvent.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim:set ts=2 sw=2 sts=2 et cindent: */
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
/* THIS FILE IS AUTOGENERATED FROM StyleSheetApplicableStateChangeEvent.webidl BY Codegen.py - DO NOT EDIT */
8
9
#include "EventBinding.h"
10
#include "StyleSheetApplicableStateChangeEvent.h"
11
#include "StyleSheetApplicableStateChangeEventBinding.h"
12
#include "js/GCAPI.h"
13
#include "mozilla/StyleSheet.h"
14
#include "mozilla/dom/Nullable.h"
15
#include "mozilla/dom/PrimitiveConversions.h"
16
#include "mozilla/dom/StyleSheetApplicableStateChangeEvent.h"
17
18
namespace mozilla {
19
namespace dom {
20
21
22
NS_IMPL_CYCLE_COLLECTION_CLASS(StyleSheetApplicableStateChangeEvent)
23
24
NS_IMPL_ADDREF_INHERITED(StyleSheetApplicableStateChangeEvent, Event)
25
NS_IMPL_RELEASE_INHERITED(StyleSheetApplicableStateChangeEvent, Event)
26
27
0
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(StyleSheetApplicableStateChangeEvent, Event)
28
0
  NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mStylesheet)
29
0
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
30
31
0
NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(StyleSheetApplicableStateChangeEvent, Event)
32
0
NS_IMPL_CYCLE_COLLECTION_TRACE_END
33
34
0
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(StyleSheetApplicableStateChangeEvent, Event)
35
0
  NS_IMPL_CYCLE_COLLECTION_UNLINK(mStylesheet)
36
0
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
37
38
0
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(StyleSheetApplicableStateChangeEvent)
39
0
NS_INTERFACE_MAP_END_INHERITING(Event)
40
41
StyleSheetApplicableStateChangeEvent::StyleSheetApplicableStateChangeEvent(mozilla::dom::EventTarget* aOwner)
42
  : Event(aOwner, nullptr, nullptr)
43
0
{
44
0
}
45
46
StyleSheetApplicableStateChangeEvent::~StyleSheetApplicableStateChangeEvent()
47
0
{
48
0
}
49
50
StyleSheetApplicableStateChangeEvent*
51
StyleSheetApplicableStateChangeEvent::AsStyleSheetApplicableStateChangeEvent()
52
0
{
53
0
  return this;
54
0
}
55
56
JSObject*
57
StyleSheetApplicableStateChangeEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
58
0
{
59
0
  return StyleSheetApplicableStateChangeEvent_Binding::Wrap(aCx, this, aGivenProto);
60
0
}
61
62
already_AddRefed<StyleSheetApplicableStateChangeEvent>
63
StyleSheetApplicableStateChangeEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const StyleSheetApplicableStateChangeEventInit& aEventInitDict)
64
0
{
65
0
  RefPtr<StyleSheetApplicableStateChangeEvent> e = new StyleSheetApplicableStateChangeEvent(aOwner);
66
0
  bool trusted = e->Init(aOwner);
67
0
  e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable);
68
0
  e->mStylesheet = aEventInitDict.mStylesheet;
69
0
  e->mApplicable = aEventInitDict.mApplicable;
70
0
  e->SetTrusted(trusted);
71
0
  e->SetComposed(aEventInitDict.mComposed);
72
0
  return e.forget();
73
0
}
74
75
already_AddRefed<StyleSheetApplicableStateChangeEvent>
76
StyleSheetApplicableStateChangeEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const StyleSheetApplicableStateChangeEventInit& aEventInitDict, ErrorResult& aRv)
77
0
{
78
0
  nsCOMPtr<mozilla::dom::EventTarget> owner = do_QueryInterface(aGlobal.GetAsSupports());
79
0
  return Constructor(owner, aType, aEventInitDict);
80
0
}
81
82
StyleSheet*
83
StyleSheetApplicableStateChangeEvent::GetStylesheet() const
84
0
{
85
0
  return mStylesheet;
86
0
}
87
88
bool
89
StyleSheetApplicableStateChangeEvent::Applicable() const
90
0
{
91
0
  return mApplicable;
92
0
}
93
94
95
} // namespace dom
96
} // namespace mozilla