mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibWeb: Lay out the fieldset's rendered legend
This commit is contained in:
parent
6218f1a609
commit
81f8866606
Notes:
github-actions[bot]
2024-11-29 12:51:25 +00:00
Author: https://github.com/kostyafarber
Commit: 81f8866606
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2546
Reviewed-by: https://github.com/tcl3 ✅
12 changed files with 356 additions and 15 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/Layout/BlockContainer.h>
|
||||
|
||||
#include <LibWeb/Painting/FieldSetPaintable.h>
|
||||
namespace Web::Layout {
|
||||
|
||||
class FieldSetBox final : public BlockContainer {
|
||||
|
@ -22,10 +22,10 @@ public:
|
|||
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;
|
||||
bool has_rendered_legend() const;
|
||||
virtual GC::Ptr<Painting::Paintable> create_paintable() const override;
|
||||
|
||||
private:
|
||||
bool has_rendered_legend() const;
|
||||
virtual bool is_fieldset_box() const final
|
||||
{
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue