mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb/HTML: Add a helper for getting parent <select> for <option>
This commit is contained in:
parent
5b6b4d93a3
commit
6c1470994b
Notes:
github-actions[bot]
2025-01-30 20:57:00 +00:00
Author: https://github.com/shannonbooth
Commit: 6c1470994b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3373
Reviewed-by: https://github.com/ADKaster ✅
2 changed files with 23 additions and 14 deletions
|
@ -36,10 +36,13 @@ public:
|
|||
|
||||
bool disabled() const;
|
||||
|
||||
GC::Ptr<HTML::HTMLFormElement> form() const;
|
||||
GC::Ptr<HTML::HTMLFormElement const> form() const;
|
||||
|
||||
virtual Optional<ARIA::Role> default_role() const override;
|
||||
|
||||
GC::Ptr<HTMLSelectElement> owner_select_element();
|
||||
GC::Ptr<HTMLSelectElement const> owner_select_element() const { return const_cast<HTMLOptionElement&>(*this).owner_select_element(); }
|
||||
|
||||
private:
|
||||
friend class Bindings::OptionConstructor;
|
||||
friend class HTMLSelectElement;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue