mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
c47d19d05a
Some checks are pending
CI / Lagom (false, FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-15, macOS, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (true, NO_FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
Fixes broken build.
38 lines
941 B
C++
38 lines
941 B
C++
/*
|
|
* Copyright (c) 2024, Kostya Farber <kostya.farber@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Forward.h>
|
|
#include <LibWeb/Layout/BlockContainer.h>
|
|
|
|
namespace Web::Layout {
|
|
|
|
class FieldSetBox final : public BlockContainer {
|
|
GC_CELL(FieldSetBox, BlockContainer);
|
|
GC_DECLARE_ALLOCATOR(FieldSetBox);
|
|
|
|
public:
|
|
FieldSetBox(DOM::Document&, DOM::Element&, CSS::StyleProperties);
|
|
virtual ~FieldSetBox() override;
|
|
|
|
DOM::Element& dom_node() { return static_cast<DOM::Element&>(*BlockContainer::dom_node()); }
|
|
DOM::Element const& dom_node() const { return static_cast<DOM::Element const&>(*BlockContainer::dom_node()); }
|
|
|
|
void layout_legend() const;
|
|
|
|
private:
|
|
bool has_rendered_legend() const;
|
|
virtual bool is_fieldset_box() const final
|
|
{
|
|
return true;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
inline bool Node::fast_is<FieldSetBox>() const { return is_fieldset_box(); }
|
|
|
|
}
|