LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dom/bindings - FontFaceSetLoadEvent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 35 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 14 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 FontFaceSetLoadEvent.webidl BY Codegen.py - DO NOT EDIT */
       8             : 
       9             : #include "EventBinding.h"
      10             : #include "FontFaceSetLoadEvent.h"
      11             : #include "FontFaceSetLoadEventBinding.h"
      12             : #include "js/GCAPI.h"
      13             : #include "mozilla/dom/FontFace.h"
      14             : #include "mozilla/dom/FontFaceSetLoadEvent.h"
      15             : #include "mozilla/dom/Nullable.h"
      16             : #include "mozilla/dom/PrimitiveConversions.h"
      17             : 
      18             : namespace mozilla {
      19             : namespace dom {
      20             : 
      21             : 
      22             : NS_IMPL_CYCLE_COLLECTION_CLASS(FontFaceSetLoadEvent)
      23             : 
      24           0 : NS_IMPL_ADDREF_INHERITED(FontFaceSetLoadEvent, Event)
      25           0 : NS_IMPL_RELEASE_INHERITED(FontFaceSetLoadEvent, Event)
      26             : 
      27           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(FontFaceSetLoadEvent, Event)
      28           0 :   NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mFontfaces)
      29           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
      30             : 
      31           0 : NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(FontFaceSetLoadEvent, Event)
      32           0 : NS_IMPL_CYCLE_COLLECTION_TRACE_END
      33             : 
      34           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(FontFaceSetLoadEvent, Event)
      35           0 :   NS_IMPL_CYCLE_COLLECTION_UNLINK(mFontfaces)
      36           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_END
      37             : 
      38           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(FontFaceSetLoadEvent)
      39           0 : NS_INTERFACE_MAP_END_INHERITING(Event)
      40             : 
      41           0 : FontFaceSetLoadEvent::FontFaceSetLoadEvent(mozilla::dom::EventTarget* aOwner)
      42           0 :   : Event(aOwner, nullptr, nullptr)
      43             : {
      44           0 : }
      45             : 
      46           0 : FontFaceSetLoadEvent::~FontFaceSetLoadEvent()
      47             : {
      48           0 : }
      49             : 
      50             : FontFaceSetLoadEvent*
      51           0 : FontFaceSetLoadEvent::AsFontFaceSetLoadEvent()
      52             : {
      53           0 :   return this;
      54             : }
      55             : 
      56             : JSObject*
      57           0 : FontFaceSetLoadEvent::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      58             : {
      59           0 :   return FontFaceSetLoadEventBinding::Wrap(aCx, this, aGivenProto);
      60             : }
      61             : 
      62             : already_AddRefed<FontFaceSetLoadEvent>
      63           0 : FontFaceSetLoadEvent::Constructor(mozilla::dom::EventTarget* aOwner, const nsAString& aType, const FontFaceSetLoadEventInit& aEventInitDict)
      64             : {
      65           0 :   RefPtr<FontFaceSetLoadEvent> e = new FontFaceSetLoadEvent(aOwner);
      66           0 :   bool trusted = e->Init(aOwner);
      67           0 :   e->InitEvent(aType, aEventInitDict.mBubbles, aEventInitDict.mCancelable);
      68           0 :   e->mFontfaces.AppendElements(aEventInitDict.mFontfaces);
      69           0 :   e->SetTrusted(trusted);
      70           0 :   e->SetComposed(aEventInitDict.mComposed);
      71           0 :   return e.forget();
      72             : }
      73             : 
      74             : already_AddRefed<FontFaceSetLoadEvent>
      75           0 : FontFaceSetLoadEvent::Constructor(const GlobalObject& aGlobal, const nsAString& aType, const FontFaceSetLoadEventInit& aEventInitDict, ErrorResult& aRv)
      76             : {
      77           0 :   nsCOMPtr<mozilla::dom::EventTarget> owner = do_QueryInterface(aGlobal.GetAsSupports());
      78           0 :   return Constructor(owner, aType, aEventInitDict);
      79             : }
      80             : 
      81             : void
      82           0 : FontFaceSetLoadEvent::GetFontfaces(nsTArray<RefPtr<FontFace>>& aRetVal) const
      83             : {
      84           0 :   aRetVal = mFontfaces;
      85           0 : }
      86             : 
      87             : 
      88             : } // namespace dom
      89             : } // namespace mozilla

Generated by: LCOV version 1.13