summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/LengthBox.cpp
blob: f6ced27f35fcba740b3451679c09e2a64e14388d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 * Copyright (c) 2022, Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include "LengthBox.h"
#include <LibWeb/CSS/StyleValue.h>

namespace Web::CSS {

LengthBox::LengthBox()
    : m_top(Length::make_auto())
    , m_right(Length::make_auto())
    , m_bottom(Length::make_auto())
    , m_left(Length::make_auto())
{
}

LengthBox::LengthBox(LengthPercentage top, LengthPercentage right, LengthPercentage bottom, LengthPercentage left)
    : m_top(top)
    , m_right(right)
    , m_bottom(bottom)
    , m_left(left)
{
}

LengthBox::~LengthBox() = default;

}