LCOV - code coverage report
Current view: top level - layout/style - CSSMozDocumentRule.h (source / functions) Hit Total Coverage
Test: output.info Lines: 2 6 33.3 %
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             : #ifndef mozilla_dom_CSSMozDocumentRule_h
       8             : #define mozilla_dom_CSSMozDocumentRule_h
       9             : 
      10             : #include "mozilla/css/GroupRule.h"
      11             : #include "nsIDOMCSSMozDocumentRule.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16           0 : class CSSMozDocumentRule : public css::ConditionRule
      17             :                          , public nsIDOMCSSMozDocumentRule
      18             : {
      19             : protected:
      20           2 :   using ConditionRule::ConditionRule;
      21           0 :   virtual ~CSSMozDocumentRule() {}
      22             : 
      23             : public:
      24             :   NS_DECL_ISUPPORTS_INHERITED
      25             : 
      26          10 :   int32_t GetType() const final override { return css::Rule::DOCUMENT_RULE; }
      27             :   using Rule::GetType;
      28             : 
      29             :   // nsIDOMCSSGroupingRule interface
      30             :   NS_DECL_NSIDOMCSSGROUPINGRULE
      31             : 
      32             :   // nsIDOMCSSConditionRule interface
      33             :   NS_IMETHOD SetConditionText(const nsAString& aConditionText) override = 0;
      34             : 
      35             :   // nsIDOMCSSMozDocumentRule interface
      36             :   NS_DECL_NSIDOMCSSMOZDOCUMENTRULE
      37             : 
      38             :   // WebIDL interface
      39           0 :   uint16_t Type() const final override {
      40           0 :     return nsIDOMCSSRule::DOCUMENT_RULE;
      41             :   }
      42             :   // Our XPCOM GetConditionText is OK
      43             :   void SetConditionText(const nsAString& aConditionText,
      44             :                         ErrorResult& aRv) final;
      45             : 
      46             :   JSObject* WrapObject(JSContext* aCx,
      47             :                        JS::Handle<JSObject*> aGivenProto) override;
      48             : };
      49             : 
      50             : } // namespace dom
      51             : } // namespace mozilla
      52             : 
      53             : #endif // mozilla_dom_CSSMozDocumentRule_h

Generated by: LCOV version 1.13