Coverage Report

Created: 2025-09-05 06:52

/src/serenity/Userland/Libraries/LibWeb/CSS/StyleValues/BackgroundRepeatStyleValue.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
3
 * Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
4
 * Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org>
5
 * Copyright (c) 2022-2023, MacDue <macdue@dueutil.tech>
6
 *
7
 * SPDX-License-Identifier: BSD-2-Clause
8
 */
9
10
#include "BackgroundRepeatStyleValue.h"
11
#include <AK/String.h>
12
13
namespace Web::CSS {
14
15
BackgroundRepeatStyleValue::BackgroundRepeatStyleValue(Repeat repeat_x, Repeat repeat_y)
16
0
    : StyleValueWithDefaultOperators(Type::BackgroundRepeat)
17
0
    , m_properties { .repeat_x = repeat_x, .repeat_y = repeat_y }
18
0
{
19
0
}
20
21
0
BackgroundRepeatStyleValue::~BackgroundRepeatStyleValue() = default;
22
23
String BackgroundRepeatStyleValue::to_string() const
24
0
{
25
0
    return MUST(String::formatted("{} {}", CSS::to_string(m_properties.repeat_x), CSS::to_string(m_properties.repeat_y)));
26
0
}
27
28
}