mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Make ARIAMixin::to_element return a reference
Let's avoid confusion on whether this method can return null. It can't. This also adds a non-const override, as that will be needed soon.
This commit is contained in:
parent
88b41d4d76
commit
a7b1f2c800
Notes:
github-actions[bot]
2025-04-25 00:21:34 +00:00
Author: https://github.com/trflynn89
Commit: a7b1f2c800
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4460
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 18 additions and 16 deletions
|
@ -330,7 +330,8 @@ public:
|
|||
|
||||
virtual bool include_in_accessibility_tree() const override;
|
||||
|
||||
virtual Element const* to_element() const override { return this; }
|
||||
virtual Element& to_element() override { return *this; }
|
||||
virtual Element const& to_element() const override { return *this; }
|
||||
|
||||
bool is_hidden() const;
|
||||
bool has_hidden_ancestor() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue