LabelablePaintable.cpp 600 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/Painting/LabelablePaintable.h>
  7. namespace Web::Painting {
  8. Layout::LabelableNode const& LabelablePaintable::layout_box() const
  9. {
  10. return static_cast<Layout::LabelableNode const&>(PaintableBox::layout_box());
  11. }
  12. Layout::LabelableNode& LabelablePaintable::layout_box()
  13. {
  14. return static_cast<Layout::LabelableNode&>(PaintableBox::layout_box());
  15. }
  16. LabelablePaintable::LabelablePaintable(Layout::LabelableNode const& layout_node)
  17. : PaintableBox(layout_node)
  18. {
  19. }
  20. }