TextPaintable.cpp 545 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/HTML/BrowsingContext.h>
  7. #include <LibWeb/Layout/Label.h>
  8. #include <LibWeb/Page/EventHandler.h>
  9. #include <LibWeb/Painting/TextPaintable.h>
  10. namespace Web::Painting {
  11. NonnullRefPtr<TextPaintable> TextPaintable::create(Layout::TextNode const& layout_node)
  12. {
  13. return adopt_ref(*new TextPaintable(layout_node));
  14. }
  15. TextPaintable::TextPaintable(Layout::TextNode const& layout_node)
  16. : Paintable(layout_node)
  17. {
  18. }
  19. }