LCOV - code coverage report
Current view: top level - dom/base - StyleSheetList.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 7 16 43.8 %
Date: 2017-07-14 16:53:18 Functions: 6 10 60.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       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             : #include "mozilla/dom/StyleSheetList.h"
       8             : 
       9             : #include "mozilla/CSSStyleSheet.h"
      10             : #include "mozilla/dom/StyleSheetListBinding.h"
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15           6 : NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_0(StyleSheetList)
      16             : 
      17          20 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(StyleSheetList)
      18           2 :   NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
      19           0 :   NS_INTERFACE_MAP_ENTRY(nsIDOMStyleSheetList)
      20           0 :   NS_INTERFACE_MAP_ENTRY(nsISupports)
      21           0 : NS_INTERFACE_MAP_END
      22             : 
      23          18 : NS_IMPL_CYCLE_COLLECTING_ADDREF(StyleSheetList)
      24          14 : NS_IMPL_CYCLE_COLLECTING_RELEASE(StyleSheetList)
      25             : 
      26             : /* virtual */ JSObject*
      27           2 : StyleSheetList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      28             : {
      29           2 :   return StyleSheetListBinding::Wrap(aCx, this, aGivenProto);
      30             : }
      31             : 
      32             : NS_IMETHODIMP
      33           0 : StyleSheetList::GetLength(uint32_t* aLength)
      34             : {
      35           0 :   *aLength = Length();
      36           0 :   return NS_OK;
      37             : }
      38             : 
      39             : NS_IMETHODIMP
      40           0 : StyleSheetList::SlowItem(uint32_t aIndex, nsIDOMStyleSheet** aItem)
      41             : {
      42           0 :   NS_IF_ADDREF(*aItem = Item(aIndex));
      43           0 :   return NS_OK;
      44             : }
      45             : 
      46             : } // namespace dom
      47             : } // namespace mozilla

Generated by: LCOV version 1.13