Serenity Operating System
1/*
2 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
3 * Copyright (c) 2022, Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
4 *
5 * SPDX-License-Identifier: BSD-2-Clause
6 */
7
8#include "LengthBox.h"
9#include <LibWeb/CSS/StyleValue.h>
10
11namespace Web::CSS {
12
13LengthBox::LengthBox()
14 : m_top(Length::make_auto())
15 , m_right(Length::make_auto())
16 , m_bottom(Length::make_auto())
17 , m_left(Length::make_auto())
18{
19}
20
21LengthBox::LengthBox(LengthPercentage top, LengthPercentage right, LengthPercentage bottom, LengthPercentage left)
22 : m_top(top)
23 , m_right(right)
24 , m_bottom(bottom)
25 , m_left(left)
26{
27}
28
29LengthBox::~LengthBox() = default;
30
31}