chromium/third_party/blink/renderer/core/svg/animation/smil_time_container.cc

/*
 * Copyright (C) 2008 Apple Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "third_party/blink/renderer/core/svg/animation/smil_time_container.h"

#include <algorithm>

#include "base/auto_reset.h"
#include "third_party/blink/renderer/core/animation/document_timeline.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element_traversal.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/svg/animation/element_smil_animations.h"
#include "third_party/blink/renderer/core/svg/animation/svg_smil_element.h"
#include "third_party/blink/renderer/core/svg/graphics/svg_image.h"
#include "third_party/blink/renderer/core/svg/svg_component_transfer_function_element.h"
#include "third_party/blink/renderer/core/svg/svg_fe_light_element.h"
#include "third_party/blink/renderer/core/svg/svg_fe_merge_node_element.h"
#include "third_party/blink/renderer/core/svg/svg_svg_element.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"

namespace blink {

class AnimationTargetsMutationsForbidden {};

class SMILTimeContainer::TimingUpdate {};

SMILTimeContainer::TimingUpdate::~TimingUpdate() {}

void SMILTimeContainer::TimingUpdate::AddActiveElement(
    SVGSMILElement* element,
    const SMILInterval& interval) {}

void SMILTimeContainer::TimingUpdate::HandleEvents(
    SVGSMILElement* element,
    SVGSMILElement::EventDispatchMask events_to_dispatch) {}

SMILTimeContainer::SMILTimeContainer(SVGSVGElement& owner)
    :{}

SMILTimeContainer::~SMILTimeContainer() {}

void SMILTimeContainer::Schedule(SVGSMILElement* animation) {}

void SMILTimeContainer::Unschedule(SVGSMILElement* animation) {}

void SMILTimeContainer::Reschedule(SVGSMILElement* animation,
                                   SMILTime interval_time) {}

bool SMILTimeContainer::HasAnimations() const {}

bool SMILTimeContainer::HasPendingSynchronization() const {}

SMILTime SMILTimeContainer::Elapsed() const {}

void SMILTimeContainer::ResetDocumentTime() {}

SMILTime SMILTimeContainer::LatestUpdatePresentationTime() const {}

void SMILTimeContainer::SynchronizeToDocumentTimeline() {}

bool SMILTimeContainer::IsPaused() const {}

bool SMILTimeContainer::IsStarted() const {}

bool SMILTimeContainer::IsTimelineRunning() const {}

void SMILTimeContainer::Start() {}

void SMILTimeContainer::Pause() {}

void SMILTimeContainer::Unpause() {}

void SMILTimeContainer::SetPresentationTime(SMILTime new_presentation_time) {}

SMILTime SMILTimeContainer::ClampPresentationTime(
    SMILTime presentation_time) const {}

void SMILTimeContainer::SetElapsed(SMILTime elapsed) {}

void SMILTimeContainer::ScheduleAnimationFrame(base::TimeDelta delay_time,
                                               bool disable_throttling) {}

void SMILTimeContainer::CancelAnimationFrame() {}

void SMILTimeContainer::ScheduleWakeUp(
    base::TimeDelta delay_time,
    FrameSchedulingState frame_scheduling_state) {}

void SMILTimeContainer::WakeupTimerFired(TimerBase*) {}

mojom::blink::ImageAnimationPolicy SMILTimeContainer::AnimationPolicy() const {}

bool SMILTimeContainer::AnimationsDisabled() const {}

void SMILTimeContainer::UpdateDocumentOrderIndexes() {}

SVGSVGElement& SMILTimeContainer::OwnerSVGElement() const {}

Document& SMILTimeContainer::GetDocument() const {}

void SMILTimeContainer::ServiceOnNextFrame() {}

bool SMILTimeContainer::ServiceAnimations() {}

bool SMILTimeContainer::UpdateAnimationsAndScheduleFrameIfNeeded(
    TimingUpdate& update) {}

SMILTime SMILTimeContainer::NextProgressTime(SMILTime presentation_time,
                                             bool disable_throttling) const {}

void SMILTimeContainer::PrepareSeek(TimingUpdate& update) {}

void SMILTimeContainer::ResetIntervals() {}

void SMILTimeContainer::UpdateIntervals(TimingUpdate& update) {}

void SMILTimeContainer::UpdateTimedElements(TimingUpdate& update) {}

namespace {

bool NonRenderedElementThatAffectsContent(const SVGElement& target) {}

bool CanThrottleTarget(const SVGElement& target) {}

}  // namespace

bool SMILTimeContainer::ApplyTimedEffects(SMILTime elapsed) {}

void SMILTimeContainer::AdvanceFrameForTesting() {}

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

void SMILTimeContainer::DidAttachLayoutObject() {}

}  // namespace blink