16 lines
486 B
C++
16 lines
486 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)
|
|
{
|
|
for (auto* ancestor = layout_node().parent(); ancestor; ancestor = ancestor->parent()) {
|
|
if (!ancestor->is_visible())
|
|
return;
|
|
}
|
|
|
|
if (is<LayoutText>(layout_node())) {
|
|
to<LayoutText>(layout_node()).render_fragment(context, *this);
|
|
}
|
|
}
|