mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00

Add the boilerplate code for the layout objects that represent the `<fieldset>` and `<legend>` elements. Using these, we can make progress towards laying out these two elements per the spec at https://html.spec.whatwg.org/multipage/rendering.html#the-fieldset-and-legend-elements.
20 lines
405 B
C++
20 lines
405 B
C++
/*
|
|
* Copyright (c) 2024, Kostya Farber <kostya.farber@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/Layout/LegendBox.h>
|
|
|
|
namespace Web::Layout {
|
|
|
|
JS_DEFINE_ALLOCATOR(LegendBox);
|
|
|
|
LegendBox::LegendBox(DOM::Document& document, DOM::Element& element, CSS::StyleProperties style)
|
|
: BlockContainer(document, &element, move(style))
|
|
{
|
|
}
|
|
|
|
LegendBox::~LegendBox() = default;
|
|
|
|
}
|