Coverage Report

Created: 2025-11-02 07:25

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/CSS/CSSAnimation.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2024, Matthew Olsson <mattco@serenityos.org>.
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <LibWeb/Animations/Animation.h>
10
#include <LibWeb/CSS/CSSStyleValue.h>
11
#include <LibWeb/CSS/PropertyID.h>
12
13
namespace Web::CSS {
14
15
// https://www.w3.org/TR/css-animations-2/#cssanimation
16
class CSSAnimation : public Animations::Animation {
17
    WEB_PLATFORM_OBJECT(CSSAnimation, Animations::Animation);
18
    JS_DECLARE_ALLOCATOR(CSSAnimation);
19
20
public:
21
    static JS::NonnullGCPtr<CSSAnimation> create(JS::Realm&);
22
23
0
    FlyString const& animation_name() const { return id(); }
24
25
    virtual Animations::AnimationClass animation_class() const override;
26
    virtual Optional<int> class_specific_composite_order(JS::NonnullGCPtr<Animations::Animation> other) const override;
27
28
private:
29
    explicit CSSAnimation(JS::Realm&);
30
31
    virtual void initialize(JS::Realm&) override;
32
33
0
    virtual bool is_css_animation() const override { return true; }
34
};
35
36
}