mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
HTML: Add const qualified form_associated_element_to_html_element
Put the const cast in a common location to make the helper more convenient to use.
This commit is contained in:
parent
ad32227c83
commit
28ed8e5d0f
Notes:
github-actions[bot]
2024-08-01 10:18:02 +00:00
Author: https://github.com/shannonbooth
Commit: 28ed8e5d0f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/876
2 changed files with 2 additions and 1 deletions
|
@ -83,6 +83,7 @@ public:
|
|||
virtual String value() const { return String {}; }
|
||||
|
||||
virtual HTMLElement& form_associated_element_to_html_element() = 0;
|
||||
HTMLElement const& form_associated_element_to_html_element() const { return const_cast<FormAssociatedElement&>(*this).form_associated_element_to_html_element(); }
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-form-reset-control
|
||||
virtual void reset_algorithm() {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue