2020-01-18 05:38:21 -03:00
|
|
|
/*
|
2024-10-04 08:19:50 -03:00
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <andreas@ladybird.org>
|
2020-01-18 05:38:21 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 05:38:21 -03:00
|
|
|
*/
|
|
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
#pragma once
|
2019-10-17 18:09:41 -03:00
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
#include <LibWeb/Layout/Box.h>
|
2020-03-07 06:27:02 -03:00
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
namespace Web::Layout {
|
2019-10-17 18:09:41 -03:00
|
|
|
|
2023-01-11 10:01:33 -03:00
|
|
|
class InlineNode final : public NodeWithStyleAndBoxModelMetrics {
|
2024-11-14 12:01:23 -03:00
|
|
|
GC_CELL(InlineNode, NodeWithStyleAndBoxModelMetrics);
|
|
|
|
|
GC_DECLARE_ALLOCATOR(InlineNode);
|
2022-10-17 09:41:50 -03:00
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
public:
|
2024-12-20 12:35:12 -03:00
|
|
|
InlineNode(DOM::Document&, DOM::Element*, GC::Ref<CSS::ComputedProperties>);
|
2020-11-22 11:53:01 -03:00
|
|
|
virtual ~InlineNode() override;
|
2020-12-03 15:14:41 -03:00
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC::Ptr<Painting::PaintableWithLines> create_paintable_for_line_with_index(size_t line_index) const;
|
2020-11-22 11:53:01 -03:00
|
|
|
};
|
2019-10-17 18:09:41 -03:00
|
|
|
|
2020-03-07 06:27:02 -03:00
|
|
|
}
|