/src/serenity/Userland/Libraries/LibWeb/Layout/InlineNode.cpp
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org> |
3 | | * Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org> |
4 | | * |
5 | | * SPDX-License-Identifier: BSD-2-Clause |
6 | | */ |
7 | | |
8 | | #include <LibWeb/DOM/Document.h> |
9 | | #include <LibWeb/DOM/Element.h> |
10 | | #include <LibWeb/Layout/BlockContainer.h> |
11 | | #include <LibWeb/Layout/InlineFormattingContext.h> |
12 | | #include <LibWeb/Layout/InlineNode.h> |
13 | | #include <LibWeb/Painting/InlinePaintable.h> |
14 | | |
15 | | namespace Web::Layout { |
16 | | |
17 | | JS_DEFINE_ALLOCATOR(InlineNode); |
18 | | |
19 | | InlineNode::InlineNode(DOM::Document& document, DOM::Element* element, NonnullRefPtr<CSS::StyleProperties> style) |
20 | 0 | : Layout::NodeWithStyleAndBoxModelMetrics(document, element, move(style)) |
21 | 0 | { |
22 | 0 | } |
23 | | |
24 | 0 | InlineNode::~InlineNode() = default; |
25 | | |
26 | | JS::GCPtr<Painting::Paintable> InlineNode::create_paintable() const |
27 | 0 | { |
28 | 0 | return Painting::InlinePaintable::create(*this); |
29 | 0 | } |
30 | | |
31 | | } |