LCOV - code coverage report
Current view: top level - docshell/base/timeline - RestyleTimelineMarker.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 10 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_RestyleTimelineMarker_h_
       8             : #define mozilla_RestyleTimelineMarker_h_
       9             : 
      10             : #include "TimelineMarker.h"
      11             : #include "mozilla/dom/ProfileTimelineMarkerBinding.h"
      12             : 
      13             : namespace mozilla {
      14             : 
      15           0 : class RestyleTimelineMarker : public TimelineMarker
      16             : {
      17             : public:
      18           0 :   RestyleTimelineMarker(bool aIsAnimationOnly,
      19             :                         MarkerTracingType aTracingType)
      20           0 :     : TimelineMarker("Styles", aTracingType)
      21             :   {
      22           0 :     mIsAnimationOnly = aIsAnimationOnly;
      23           0 :   }
      24             : 
      25           0 :   virtual void AddDetails(JSContext* aCx, dom::ProfileTimelineMarker& aMarker) override
      26             :   {
      27           0 :     TimelineMarker::AddDetails(aCx, aMarker);
      28             : 
      29           0 :     if (GetTracingType() == MarkerTracingType::START) {
      30           0 :       aMarker.mIsAnimationOnly.Construct(mIsAnimationOnly);
      31             :     }
      32           0 :   }
      33             : 
      34             : private:
      35             :   bool mIsAnimationOnly;
      36             : };
      37             : 
      38             : } // namespace mozilla
      39             : 
      40             : #endif // mozilla_RestyleTimelineMarker_h_

Generated by: LCOV version 1.13