2020-01-18 09:38:21 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
2021-10-06 20:02:41 +02:00
|
|
|
#include <LibWeb/Layout/BlockContainer.h>
|
2020-11-22 15:53:01 +01:00
|
|
|
#include <LibWeb/Layout/BreakNode.h>
|
2020-12-05 20:10:39 +01:00
|
|
|
#include <LibWeb/Layout/InlineFormattingContext.h>
|
2019-10-12 13:47:49 +02:00
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
namespace Web::Layout {
|
2020-03-07 10:27:02 +01:00
|
|
|
|
2024-04-06 10:16:04 -07:00
|
|
|
JS_DEFINE_ALLOCATOR(BreakNode);
|
|
|
|
|
2021-09-23 19:46:20 +02:00
|
|
|
BreakNode::BreakNode(DOM::Document& document, HTML::HTMLBRElement& element, NonnullRefPtr<CSS::StyleProperties> style)
|
|
|
|
: Layout::NodeWithStyleAndBoxModelMetrics(document, &element, move(style))
|
2019-10-12 13:47:49 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-03-14 13:21:51 -06:00
|
|
|
BreakNode::~BreakNode() = default;
|
2019-10-12 13:47:49 +02:00
|
|
|
|
2020-03-07 10:27:02 +01:00
|
|
|
}
|