LCOV - code coverage report
Current view: top level - layout/style - ServoKeyframesRule.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 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_ServoKeyframesRule_h
       8             : #define mozilla_ServoKeyframesRule_h
       9             : 
      10             : #include "mozilla/dom/CSSKeyframesRule.h"
      11             : #include "mozilla/ServoBindingTypes.h"
      12             : 
      13             : namespace mozilla {
      14             : 
      15             : class ServoKeyframeList;
      16             : 
      17             : class ServoKeyframesRule final : public dom::CSSKeyframesRule
      18             : {
      19             : public:
      20             :   ServoKeyframesRule(RefPtr<RawServoKeyframesRule> aRawRule,
      21             :                      uint32_t aLine, uint32_t aColumn);
      22             : 
      23             :   NS_DECL_ISUPPORTS_INHERITED
      24           0 :   NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(ServoKeyframesRule,
      25             :                                            dom::CSSKeyframesRule)
      26             :   bool IsCCLeaf() const final;
      27             : 
      28             :   already_AddRefed<css::Rule> Clone() const final;
      29             : #ifdef DEBUG
      30             :   void List(FILE* out = stdout, int32_t aIndent = 0) const final;
      31             : #endif
      32             :   void SetStyleSheet(StyleSheet* aSheet) final;
      33             : 
      34             :   // nsIDOMCSSKeyframesRule interface
      35             :   NS_IMETHOD GetName(nsAString& aName) final;
      36             :   NS_IMETHOD SetName(const nsAString& aName) final;
      37             :   NS_IMETHOD AppendRule(const nsAString& aRule) final;
      38             :   NS_IMETHOD DeleteRule(const nsAString& aKey) final;
      39             :   using nsIDOMCSSKeyframesRule::FindRule;
      40             : 
      41             :   // WebIDL interface
      42             :   void GetCssTextImpl(nsAString& aCssText) const final;
      43             :   dom::CSSRuleList* CssRules() final;
      44             :   dom::CSSKeyframeRule* FindRule(const nsAString& aKey) final;
      45             : 
      46             :   size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const final;
      47             : 
      48             : private:
      49             :   uint32_t FindRuleIndexForKey(const nsAString& aKey);
      50             : 
      51             :   template<typename Func>
      52             :   void UpdateRule(Func aCallback);
      53             : 
      54             :   virtual ~ServoKeyframesRule();
      55             : 
      56             :   RefPtr<RawServoKeyframesRule> mRawRule;
      57             :   RefPtr<ServoKeyframeList> mKeyframeList; // lazily constructed
      58             : };
      59             : 
      60             : } // namespace mozilla
      61             : 
      62             : #endif // mozilla_ServoKeyframesRule_h

Generated by: LCOV version 1.13