Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/animation/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  AnimationTimelinesController.h

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef mozilla_dom_AnimationTimelinesController_h
#define mozilla_dom_AnimationTimelinesController_h

#include "mozilla/LinkedList.h"

namespace mozilla::dom {
class DocumentTimeline;
class ScrollTimeline;

/**
 * The controller which keeps track of all timelines in a document. So basically
 * each document should have its own AnimationTimelinesController.
 */

class AnimationTimelinesController final {
 public:
  AnimationTimelinesController() = default;
  ~AnimationTimelinesController() {
    // We expect the timelines should remove themself from the controller
    // already.
    MOZ_ASSERT(mDocumentTimelines.isEmpty());
    MOZ_ASSERT(mScrollTimelines.isEmpty());
  }

  void AddDocumentTimeline(DocumentTimeline& aTimeline);
  void AddScrollTimeline(ScrollTimeline& aTimeline);

  void WillRefresh();
  bool UpdateStaleTimelines();
  void UpdateLastRefreshDriverTime();
  void TriggerAllPendingAnimationsNow();
  void UpdateHiddenByContentVisibility();

 private:
  LinkedList<DocumentTimeline> mDocumentTimelines;
  // Note: we use a separate linked list for scroll timelines (and
  // view-timelines) because some utility functions don't need to traverse this
  // list for now. If all functions have to check both lists, we should merge
  // them.
  LinkedList<ScrollTimeline> mScrollTimelines;
};

}  // namespace mozilla::dom

#endif  // mozilla_dom_AnimationTimelinesController_h

Messung V0.5 in Prozent
C=92 H=98 G=94

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.