LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dom/bindings - StyleRuleChangeEvent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 39 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 15 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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 StyleRuleChangeEvent.webidl BY Codegen.py - DO NOT EDIT */
       8             : 
       9             : #include "EventBinding.h"
      10             : #include "StyleRuleChangeEvent.h"
      11             : #include "StyleRuleChangeEventBinding.h"
      12             : #include "js/GCAPI.h"
      13             : #include "mozilla/StyleSheet.h"
      14             : #include "mozilla/css/Rule.h"
      15             : #include "mozilla/dom/Nullable.h"
      16             : #include "mozilla/dom/PrimitiveConversions.h"
      17             : #include "mozilla/dom/StyleRuleChangeEvent.h"
      18             : 
      19             : namespace mozilla {
      20             : namespace dom {
      21             : 
      22             : 
      23             : NS_IMPL_CYCLE_COLLECTION_CLASS(StyleRuleChangeEvent)
      24             : 
      25           0 : NS_IMPL_ADDREF_INHERITED(StyleRuleChangeEvent, Event)
      26           0 : NS_IMPL_RELEASE_INHERITED(StyleRuleChangeEvent, Event)
      27             : 
      28           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(StyleRuleChangeEvent, Event)
      29           0 :   NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mStylesheet)
      30           0 :   NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mRule)
      31           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
      32             : 
      33           0 : NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(StyleRuleChangeEvent, Event)
      34           0 : NS_IMPL_CYCLE_COLLECTION_TRACE_END
      35             : 
      36           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(StyleRuleChangeEvent, Event)
      37           0 :   NS_IMPL_CYCLE_COLLECTION_UNLINK(mStylesheet)
      38           0 :   NS_IMPL_CYCLE_COLLECTION_UNLINK(mRule)
      39           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_END
      40             : 
      41           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(StyleRuleChangeEvent)
      42           0 : NS_INTERFACE_MAP_END_INHERITING(Event)
      43             : 
      44           0 : StyleRuleChangeEvent::StyleRuleChangeEvent(mozilla::dom::EventTarget* aOwner)
      45           0 :   : Event(aOwner, nullptr, nullptr)
      46             : {
      47           0 : }
      48             : 
      49           0 : StyleRuleChangeEvent::~StyleRuleChangeEvent()
      50             : {
      51           0 : }
      52             : 
      53             : StyleRuleChangeEvent*
      54           0 : StyleRuleChangeEvent::AsStyleRuleChangeEvent()
      55             : {
      56           0 :   return this;
      57             : }
      58             : 
      59             : JSObject*
      60           0 : StyleRuleChangeEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      61             : {
      62           0 :   return StyleRuleChangeEventBinding::Wrap(aCx, this, aGivenProto);
      63             : }
      64             : 
      65             : already_AddRefed<StyleRuleChangeEvent>
      66           0 : StyleRuleChangeEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const StyleRuleChangeEventInit& aEventInitDict)
      67             : {
      68           0 :   RefPtr<StyleRuleChangeEvent> e = new StyleRuleChangeEvent(aOwner);
      69           0 :   bool trusted = e->Init(aOwner);
      70           0 :   e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable);
      71           0 :   e->mStylesheet = aEventInitDict.mStylesheet;
      72           0 :   e->mRule = aEventInitDict.mRule;
      73           0 :   e->SetTrusted(trusted);
      74           0 :   e->SetComposed(aEventInitDict.mComposed);
      75           0 :   return e.forget();
      76             : }
      77             : 
      78             : already_AddRefed<StyleRuleChangeEvent>
      79           0 : StyleRuleChangeEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const StyleRuleChangeEventInit& aEventInitDict, ErrorResult& aRv)
      80             : {
      81           0 :   nsCOMPtr<mozilla::dom::EventTarget> owner = do_QueryInterface(aGlobal.GetAsSupports());
      82           0 :   return Constructor(owner, aType, aEventInitDict);
      83             : }
      84             : 
      85             : StyleSheet*
      86           0 : StyleRuleChangeEvent::GetStylesheet() const
      87             : {
      88           0 :   return mStylesheet;
      89             : }
      90             : 
      91             : css::Rule*
      92           0 : StyleRuleChangeEvent::GetRule() const
      93             : {
      94           0 :   return mRule;
      95             : }
      96             : 
      97             : 
      98             : } // namespace dom
      99             : } // namespace mozilla

Generated by: LCOV version 1.13