LineBoxFragment.cpp 380 B

123456789101112
  1. #include <LibGUI/GPainter.h>
  2. #include <LibHTML/Layout/LayoutText.h>
  3. #include <LibHTML/Layout/LineBoxFragment.h>
  4. #include <LibHTML/RenderingContext.h>
  5. void LineBoxFragment::render(RenderingContext& context)
  6. {
  7. if (layout_node().is_text()) {
  8. auto& layout_text = static_cast<const LayoutText&>(layout_node());
  9. layout_text.render_fragment(context, *this);
  10. }
  11. }