LCOV - code coverage report
Current view: top level - layout/style - CSSImportRule.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 2 17 11.8 %
Date: 2017-07-14 16:53:18 Functions: 2 7 28.6 %
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/CSSImportRule.h"
       8             : 
       9             : #include "mozilla/dom/CSSImportRuleBinding.h"
      10             : #include "mozilla/dom/MediaList.h"
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15           6 : NS_IMPL_ADDREF_INHERITED(CSSImportRule, css::Rule)
      16           3 : NS_IMPL_RELEASE_INHERITED(CSSImportRule, css::Rule)
      17             : 
      18             : // QueryInterface implementation for CSSImportRule
      19           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(CSSImportRule)
      20           0 :   NS_INTERFACE_MAP_ENTRY(nsIDOMCSSImportRule)
      21           0 : NS_INTERFACE_MAP_END_INHERITING(css::Rule)
      22             : 
      23             : bool
      24           0 : CSSImportRule::IsCCLeaf() const
      25             : {
      26             :   // We're not a leaf.
      27           0 :   return false;
      28             : }
      29             : 
      30             : NS_IMETHODIMP
      31           0 : CSSImportRule::GetMedia(nsIDOMMediaList** aMedia)
      32             : {
      33           0 :   NS_ENSURE_ARG_POINTER(aMedia);
      34           0 :   NS_IF_ADDREF(*aMedia = GetMedia());
      35           0 :   return NS_OK;
      36             : }
      37             : 
      38             : NS_IMETHODIMP
      39           0 : CSSImportRule::GetStyleSheet(nsIDOMCSSStyleSheet** aStyleSheet)
      40             : {
      41           0 :   NS_ENSURE_ARG_POINTER(aStyleSheet);
      42           0 :   NS_IF_ADDREF(*aStyleSheet = GetStyleSheet());
      43           0 :   return NS_OK;
      44             : }
      45             : 
      46             : /* virtual */ JSObject*
      47           0 : CSSImportRule::WrapObject(JSContext* aCx,
      48             :                           JS::Handle<JSObject*> aGivenProto)
      49             : {
      50           0 :   return CSSImportRuleBinding::Wrap(aCx, this, aGivenProto);
      51             : }
      52             : 
      53             : } // namespace dom
      54             : } // namespace mozilla

Generated by: LCOV version 1.13