LCOV - code coverage report
Current view: top level - layout/style - CSSMozDocumentRule.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 5 18 27.8 %
Date: 2017-07-14 16:53:18 Functions: 1 8 12.5 %
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/CSSMozDocumentRule.h"
       8             : #include "mozilla/dom/CSSMozDocumentRuleBinding.h"
       9             : 
      10             : namespace mozilla {
      11             : namespace dom {
      12             : 
      13           0 : NS_IMPL_ADDREF_INHERITED(CSSMozDocumentRule, css::ConditionRule)
      14           0 : NS_IMPL_RELEASE_INHERITED(CSSMozDocumentRule, css::ConditionRule)
      15             : 
      16             : // QueryInterface implementation for CSSMozDocumentRule
      17           2 : NS_INTERFACE_MAP_BEGIN(CSSMozDocumentRule)
      18           2 :   NS_INTERFACE_MAP_ENTRY(nsIDOMCSSGroupingRule)
      19           2 :   NS_INTERFACE_MAP_ENTRY(nsIDOMCSSConditionRule)
      20           2 :   NS_INTERFACE_MAP_ENTRY(nsIDOMCSSMozDocumentRule)
      21           2 : NS_INTERFACE_MAP_END_INHERITING(ConditionRule)
      22             : 
      23             : // nsIDOMCSSGroupingRule methods
      24             : NS_IMETHODIMP
      25           0 : CSSMozDocumentRule::GetCssRules(nsIDOMCSSRuleList** aRuleList)
      26             : {
      27           0 :   return GroupRule::GetCssRules(aRuleList);
      28             : }
      29             : 
      30             : NS_IMETHODIMP
      31           0 : CSSMozDocumentRule::InsertRule(const nsAString & aRule,
      32             :                                uint32_t aIndex, uint32_t* _retval)
      33             : {
      34           0 :   return GroupRule::InsertRule(aRule, aIndex, _retval);
      35             : }
      36             : 
      37             : NS_IMETHODIMP
      38           0 : CSSMozDocumentRule::DeleteRule(uint32_t aIndex)
      39             : {
      40           0 :   return GroupRule::DeleteRule(aIndex);
      41             : }
      42             : 
      43             : void
      44           0 : CSSMozDocumentRule::SetConditionText(const nsAString& aConditionText,
      45             :                                      ErrorResult& aRv)
      46             : {
      47           0 :   aRv = SetConditionText(aConditionText);
      48           0 : }
      49             : 
      50             : /* virtual */ JSObject*
      51           0 : CSSMozDocumentRule::WrapObject(JSContext* aCx,
      52             :                                JS::Handle<JSObject*> aGivenProto)
      53             : {
      54           0 :   return CSSMozDocumentRuleBinding::Wrap(aCx, this, aGivenProto);
      55             : }
      56             : 
      57             : } // namespace dom
      58             : } // namespace mozilla

Generated by: LCOV version 1.13