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

LayoutInline::LayoutInline(const Node& node, RefPtr<StyleProperties> style_properties)
    : LayoutNode(&node, move(style_properties))
{
}

LayoutInline::~LayoutInline()
{
}

void LayoutInline::split_into_lines(LayoutBlock& container)
{
    for_each_child([&](auto& child) {
        if (child.is_inline()) {
            static_cast<LayoutInline&>(child).split_into_lines(container);
        } else {
            // FIXME: Support block children of inlines.
        }
    });
}