LCOV - code coverage report
Current view: top level - layout/style - CSSKeyframesRule.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_CSSKeyframesRule_h
       8             : #define mozilla_dom_CSSKeyframesRule_h
       9             : 
      10             : #include "mozilla/css/GroupRule.h"
      11             : #include "nsIDOMCSSKeyframesRule.h"
      12             : 
      13             : #include "mozilla/dom/CSSKeyframeRule.h"
      14             : 
      15             : namespace mozilla {
      16             : namespace dom {
      17             : 
      18           0 : class CSSKeyframesRule : public css::GroupRule
      19             :                        , public nsIDOMCSSKeyframesRule
      20             : {
      21             : protected:
      22          31 :   using css::GroupRule::GroupRule;
      23           0 :   virtual ~CSSKeyframesRule() {}
      24             : 
      25             : public:
      26             :   NS_DECL_ISUPPORTS_INHERITED
      27             : 
      28         124 :   int32_t GetType() const final { return Rule::KEYFRAMES_RULE; }
      29             :   using Rule::GetType;
      30             : 
      31             :   // nsIDOMCSSKeyframesRule interface
      32             :   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList** aRuleList) final;
      33             :   NS_IMETHOD FindRule(const nsAString& aKey,
      34             :                       nsIDOMCSSKeyframeRule** aResult) final;
      35             : 
      36             :   // WebIDL interface
      37           0 :   uint16_t Type() const final { return nsIDOMCSSRule::KEYFRAMES_RULE; }
      38             :   // The XPCOM GetName is OK
      39             :   // The XPCOM SetName is OK
      40             :   virtual CSSRuleList* CssRules() = 0;
      41             :   // The XPCOM appendRule is OK, since it never throws
      42             :   using nsIDOMCSSKeyframesRule::DeleteRule;
      43             :   virtual CSSKeyframeRule* FindRule(const nsAString& aKey) = 0;
      44             : 
      45             :   bool UseForPresentation(nsPresContext* aPresContext,
      46             :                           nsMediaQueryResultCacheKey& aKey) final;
      47             : 
      48             :   size_t SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const override = 0;
      49             : 
      50             :   JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) final;
      51             : };
      52             : 
      53             : } // namespace dom
      54             : } // namespace mozilla
      55             : 
      56             : #endif // mozilla_dom_CSSKeyframesRule_h

Generated by: LCOV version 1.13