mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibWeb/HTML: Add a helper for getting parent <select> for <option>
This commit is contained in:
committed by
Andrew Kaster
parent
5b6b4d93a3
commit
6c1470994b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user