InlineNode.h 579 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <andreas@ladybird.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Layout/Box.h>
  8. namespace Web::Layout {
  9. class InlineNode final : public NodeWithStyleAndBoxModelMetrics {
  10. GC_CELL(InlineNode, NodeWithStyleAndBoxModelMetrics);
  11. GC_DECLARE_ALLOCATOR(InlineNode);
  12. public:
  13. InlineNode(DOM::Document&, DOM::Element*, CSS::ComputedProperties);
  14. virtual ~InlineNode() override;
  15. GC::Ptr<Painting::PaintableWithLines> create_paintable_for_line_with_index(size_t line_index) const;
  16. };
  17. }