Coverage Report

Created: 2026-09-26 06:49

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/CSS/StyleValues/AngleStyleValue.cpp
Line
Count
Source
1
/*
2
 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
3
 * Copyright (c) 2021-2024, Sam Atkins <sam@ladybird.org>
4
 * Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
5
 * Copyright (c) 2022-2023, MacDue <macdue@dueutil.tech>
6
 *
7
 * SPDX-License-Identifier: BSD-2-Clause
8
 */
9
10
#include "AngleStyleValue.h"
11
12
namespace Web::CSS {
13
14
AngleStyleValue::AngleStyleValue(Angle angle)
15
0
    : CSSUnitValue(Type::Angle)
16
0
    , m_angle(move(angle))
17
0
{
18
0
}
19
20
0
AngleStyleValue::~AngleStyleValue() = default;
21
22
String AngleStyleValue::to_string() const
23
0
{
24
0
    return m_angle.to_string();
25
0
}
26
27
bool AngleStyleValue::equals(CSSStyleValue const& other) const
28
0
{
29
0
    if (type() != other.type())
30
0
        return false;
31
0
    auto const& other_angle = other.as_angle();
32
0
    return m_angle == other_angle.m_angle;
33
0
}
34
35
}