LabelableNode.cpp 533 B

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