/* * Copyright (c) 2018-2022, Andreas Kling * Copyright (c) 2021, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include #include #include namespace Web::Layout { InlineNode::InlineNode(DOM::Document& document, DOM::Element* element, NonnullRefPtr style) : Layout::NodeWithStyleAndBoxModelMetrics(document, element, move(style)) { set_inline(true); } InlineNode::~InlineNode() = default; RefPtr InlineNode::create_paintable() const { return Painting::InlinePaintable::create(*this); } }