mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
13 lines
380 B
C++
13 lines
380 B
C++
|
#include <LibGUI/GPainter.h>
|
||
|
#include <LibHTML/Layout/LayoutText.h>
|
||
|
#include <LibHTML/Layout/LineBoxFragment.h>
|
||
|
#include <LibHTML/RenderingContext.h>
|
||
|
|
||
|
void LineBoxFragment::render(RenderingContext& context)
|
||
|
{
|
||
|
if (layout_node().is_text()) {
|
||
|
auto& layout_text = static_cast<const LayoutText&>(layout_node());
|
||
|
layout_text.render_fragment(context, *this);
|
||
|
}
|
||
|
}
|