2020-01-18 11:38:21 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 11:38:21 +03:00
|
|
|
*/
|
|
|
|
|
2020-03-07 12:32:51 +03:00
|
|
|
#include <LibWeb/DOM/Element.h>
|
2021-10-06 21:02:41 +03:00
|
|
|
#include <LibWeb/Layout/BlockContainer.h>
|
2020-12-06 01:41:07 +03:00
|
|
|
#include <LibWeb/Layout/InlineFormattingContext.h>
|
2020-11-22 17:53:01 +03:00
|
|
|
#include <LibWeb/Layout/ReplacedBox.h>
|
2019-10-05 23:07:45 +03:00
|
|
|
|
2020-11-22 17:53:01 +03:00
|
|
|
namespace Web::Layout {
|
2020-03-07 12:27:02 +03:00
|
|
|
|
2020-11-22 17:53:01 +03:00
|
|
|
ReplacedBox::ReplacedBox(DOM::Document& document, DOM::Element& element, NonnullRefPtr<CSS::StyleProperties> style)
|
|
|
|
: Box(document, &element, move(style))
|
2019-10-05 23:07:45 +03:00
|
|
|
{
|
|
|
|
// FIXME: Allow non-inline replaced elements.
|
|
|
|
set_inline(true);
|
|
|
|
}
|
|
|
|
|
2022-03-14 22:21:51 +03:00
|
|
|
ReplacedBox::~ReplacedBox() = default;
|
2019-10-06 00:20:35 +03:00
|
|
|
|
2020-03-07 12:27:02 +03:00
|
|
|
}
|