
Since LayoutText no longer inherits from LayoutInline, all of the DOM nodes with a LayoutInline are going to be Elements.
13 lines
305 B
C++
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()
|
|
{
|
|
}
|