LCOV - code coverage report
Current view: top level - layout/style - CSSImportRule.h (source / functions) Hit Total Coverage
Test: output.info Lines: 2 5 40.0 %
Date: 2017-07-14 16:53:18 Functions: 2 6 33.3 %
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_CSSImportRule_h
       8             : #define mozilla_dom_CSSImportRule_h
       9             : 
      10             : #include "mozilla/css/Rule.h"
      11             : #include "nsIDOMCSSImportRule.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16           0 : class CSSImportRule : public css::Rule
      17             :                     , public nsIDOMCSSImportRule
      18             : {
      19             : protected:
      20           3 :   using Rule::Rule;
      21           0 :   virtual ~CSSImportRule() {}
      22             : 
      23             : public:
      24             :   NS_DECL_ISUPPORTS_INHERITED
      25             :   bool IsCCLeaf() const final;
      26             : 
      27          11 :   int32_t GetType() const final { return css::Rule::IMPORT_RULE; }
      28             :   using Rule::GetType;
      29             : 
      30             :   size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf)
      31             :     const override = 0;
      32             : 
      33             :   // nsIDOMCSSImportRule interface
      34             :   NS_IMETHOD GetMedia(nsIDOMMediaList** aMedia) final;
      35             :   NS_IMETHOD GetStyleSheet(nsIDOMCSSStyleSheet** aStyleSheet) final;
      36             : 
      37             :   // WebIDL interface
      38           0 :   uint16_t Type() const final { return nsIDOMCSSRule::IMPORT_RULE; }
      39             :   // The XPCOM GetHref is fine, since it never fails.
      40             :   virtual dom::MediaList* GetMedia() const = 0;
      41             :   virtual StyleSheet* GetStyleSheet() const = 0;
      42             : 
      43             :   JSObject* WrapObject(JSContext* aCx,
      44             :                        JS::Handle<JSObject*> aGivenProto) override;
      45             : };
      46             : 
      47             : } // namespace dom
      48             : } // namespace mozilla
      49             : 
      50             : #endif // mozilla_dom_CSSImportRule_h

Generated by: LCOV version 1.13