mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
LibHTML: Add is<T> and to<T> helpers for LayoutNode class family
This commit is contained in:
@@ -10,8 +10,7 @@ void LineBoxFragment::render(RenderingContext& context)
|
||||
return;
|
||||
}
|
||||
|
||||
if (layout_node().is_text()) {
|
||||
auto& layout_text = static_cast<const LayoutText&>(layout_node());
|
||||
layout_text.render_fragment(context, *this);
|
||||
if (is<LayoutText>(layout_node())) {
|
||||
to<LayoutText>(layout_node()).render_fragment(context, *this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user