Serenity Operating System
at master 29 lines 807 B view raw
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 15namespace Web::Layout { 16 17InlineNode::InlineNode(DOM::Document& document, DOM::Element* element, NonnullRefPtr<CSS::StyleProperties> style) 18 : Layout::NodeWithStyleAndBoxModelMetrics(document, element, move(style)) 19{ 20} 21 22InlineNode::~InlineNode() = default; 23 24JS::GCPtr<Painting::Paintable> InlineNode::create_paintable() const 25{ 26 return Painting::InlinePaintable::create(*this); 27} 28 29}