LCOV - code coverage report
Current view: top level - layout/style - CSSSupportsRule.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 5 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 7 0.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             : #ifndef mozilla_dom_CSSSupportsRule_h
       8             : #define mozilla_dom_CSSSupportsRule_h
       9             : 
      10             : #include "mozilla/css/GroupRule.h"
      11             : #include "nsIDOMCSSSupportsRule.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16           0 : class CSSSupportsRule : public css::ConditionRule
      17             :                       , public nsIDOMCSSSupportsRule
      18             : {
      19             : protected:
      20           0 :   using ConditionRule::ConditionRule;
      21           0 :   virtual ~CSSSupportsRule() {}
      22             : 
      23             : public:
      24             :   NS_DECL_ISUPPORTS_INHERITED
      25             : 
      26           0 :   int32_t GetType() const override { return css::Rule::SUPPORTS_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             :   // nsIDOMCSSSupportsRule interface
      36             :   NS_DECL_NSIDOMCSSSUPPORTSRULE
      37             : 
      38             :   // WebIDL interface
      39           0 :   uint16_t Type() const override { return nsIDOMCSSRule::SUPPORTS_RULE; }
      40             :   // Our XPCOM GetConditionText is OK
      41             :   void SetConditionText(const nsAString& aConditionText,
      42             :                         ErrorResult& aRv) final;
      43             : 
      44             :   JSObject* WrapObject(JSContext* aCx,
      45             :                        JS::Handle<JSObject*> aGivenProto) override;
      46             : };
      47             : 
      48             : } // namespace dom
      49             : } // namespace mozilla
      50             : 
      51             : #endif // mozilla_dom_CSSSupportsRule_h

Generated by: LCOV version 1.13