ladybird/Libraries/LibHTML/Layout/LayoutInline.cpp
Andreas Kling c8e5039418 LibHTML: LayoutInline can only be constructed with an Element
Since LayoutText no longer inherits from LayoutInline, all of the
DOM nodes with a LayoutInline are going to be Elements.
2019-10-06 11:26:34 +02:00

13 lines
305 B
C++

#include <LibHTML/DOM/Element.h>
#include <LibHTML/Layout/LayoutBlock.h>
#include <LibHTML/Layout/LayoutInline.h>
LayoutInline::LayoutInline(const Element& element, NonnullRefPtr<StyleProperties> style)
: LayoutNode(&element, move(style))
{
set_inline(true);
}
LayoutInline::~LayoutInline()
{
}