summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/Layout/ComputedStyle.cpp
blob: e5948039ae6ba0e903cda3734546ef2c6c5d8cc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <LibHTML/Layout/ComputedStyle.h>

ComputedStyle::ComputedStyle()
{
}

ComputedStyle::~ComputedStyle()
{
}

ComputedStyle::PixelBox ComputedStyle::full_margin() const
{
    return {
        m_margin.top.to_px() + m_border.top.to_px() + m_padding.top.to_px(),
        m_margin.right.to_px() + m_border.right.to_px() + m_padding.right.to_px(),
        m_margin.bottom.to_px() + m_border.bottom.to_px() + m_padding.bottom.to_px(),
        m_margin.left.to_px() + m_border.left.to_px() + m_padding.left.to_px(),
    };
}