mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 22:49:47 +00:00
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / 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
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
32 lines
986 B
C++
32 lines
986 B
C++
/*
|
|
* Copyright (c) 2022, sin-ack <sin-ack@protonmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Forward.h>
|
|
#include <LibWeb/HTML/FormAssociatedElement.h>
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
#include <LibWeb/Layout/LabelableNode.h>
|
|
|
|
namespace Web::Layout {
|
|
|
|
class FormAssociatedLabelableNode : public LabelableNode {
|
|
GC_CELL(FormAssociatedLabelableNode, LabelableNode);
|
|
|
|
public:
|
|
HTML::FormAssociatedElement const& dom_node() const { return as<HTML::FormAssociatedElement>(LabelableNode::dom_node()); }
|
|
HTML::FormAssociatedElement& dom_node() { return as<HTML::FormAssociatedElement>(LabelableNode::dom_node()); }
|
|
|
|
protected:
|
|
FormAssociatedLabelableNode(DOM::Document& document, HTML::FormAssociatedElement& element, GC::Ref<CSS::ComputedProperties> style)
|
|
: LabelableNode(document, element.form_associated_element_to_html_element(), move(style))
|
|
{
|
|
}
|
|
|
|
virtual ~FormAssociatedLabelableNode() = default;
|
|
};
|
|
|
|
}
|