/src/mozilla-central/docshell/base/timeline/RestyleTimelineMarker.h
Line | Count | Source (jump to first uncovered line) |
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 | | class RestyleTimelineMarker : public TimelineMarker |
16 | | { |
17 | | public: |
18 | | RestyleTimelineMarker(bool aIsAnimationOnly, |
19 | | MarkerTracingType aTracingType) |
20 | | : TimelineMarker("Styles", aTracingType) |
21 | 0 | { |
22 | 0 | mIsAnimationOnly = aIsAnimationOnly; |
23 | 0 | } |
24 | | |
25 | | virtual void AddDetails(JSContext* aCx, dom::ProfileTimelineMarker& aMarker) override |
26 | 0 | { |
27 | 0 | TimelineMarker::AddDetails(aCx, aMarker); |
28 | 0 |
|
29 | 0 | if (GetTracingType() == MarkerTracingType::START) { |
30 | 0 | aMarker.mIsAnimationOnly.Construct(mIsAnimationOnly); |
31 | 0 | } |
32 | 0 | } |
33 | | |
34 | | private: |
35 | | bool mIsAnimationOnly; |
36 | | }; |
37 | | |
38 | | } // namespace mozilla |
39 | | |
40 | | #endif // mozilla_RestyleTimelineMarker_h_ |