chromium/third_party/blink/renderer/core/animation/scroll_snapshot_timeline.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/animation/scroll_snapshot_timeline.h"

#include <optional>

#include "third_party/blink/renderer/bindings/core/v8/v8_union_cssnumericvalue_double.h"
#include "third_party/blink/renderer/core/animation/scroll_timeline_util.h"
#include "third_party/blink/renderer/core/css/cssom/css_unit_values.h"
#include "third_party/blink/renderer/core/dom/node.h"
#include "third_party/blink/renderer/core/layout/forms/layout_fieldset.h"
#include "third_party/blink/renderer/core/layout/layout_box.h"

namespace blink {

ScrollSnapshotTimeline::ScrollSnapshotTimeline(Document* document)
    :{}

bool ScrollSnapshotTimeline::IsResolved() const {}

bool ScrollSnapshotTimeline::IsActive() const {}

std::optional<ScrollOffsets> ScrollSnapshotTimeline::GetResolvedScrollOffsets()
    const {}

std::optional<ScrollSnapshotTimeline::ViewOffsets>
ScrollSnapshotTimeline::GetResolvedViewOffsets() const {}

// TODO(crbug.com/1336260): Since phase can only be kActive or kInactive and
// currentTime  can only be null if phase is inactive or before the first
// snapshot we can probably drop phase.
AnimationTimeline::PhaseAndTime ScrollSnapshotTimeline::CurrentPhaseAndTime() {}

V8CSSNumberish* ScrollSnapshotTimeline::ConvertTimeToProgress(
    AnimationTimeDelta time) const {}

V8CSSNumberish* ScrollSnapshotTimeline::currentTime() {}

V8CSSNumberish* ScrollSnapshotTimeline::duration() {}

void ScrollSnapshotTimeline::ResolveTimelineOffsets() const {}

// Scroll-linked animations are initialized with the start time of zero.
std::optional<base::TimeDelta>
ScrollSnapshotTimeline::InitialStartTimeForAnimations() {}

AnimationTimeDelta ScrollSnapshotTimeline::CalculateIntrinsicIterationDuration(
    const TimelineRange& timeline_range,
    const std::optional<TimelineOffset>& range_start,
    const std::optional<TimelineOffset>& range_end,
    const Timing& timing) {}

TimelineRange ScrollSnapshotTimeline::GetTimelineRange() const {}

void ScrollSnapshotTimeline::ServiceAnimations(TimingUpdateReason reason) {}

bool ScrollSnapshotTimeline::ShouldScheduleNextService() {}

void ScrollSnapshotTimeline::ScheduleNextService() {}

void ScrollSnapshotTimeline::UpdateSnapshot() {}

LayoutBox* ScrollSnapshotTimeline::ComputeScrollContainer(
    Node* resolved_source) {}

void ScrollSnapshotTimeline::Trace(Visitor* visitor) const {}

void ScrollSnapshotTimeline::InvalidateEffectTargetStyle() const {}

bool ScrollSnapshotTimeline::ValidateSnapshot() {}

cc::AnimationTimeline* ScrollSnapshotTimeline::EnsureCompositorTimeline() {}

void ScrollSnapshotTimeline::UpdateCompositorTimeline() {}

}  // namespace blink