LibWeb: Add select element size property

This commit is contained in:
Bastiaan van der Plaat 2024-04-08 21:34:19 +02:00 committed by Andreas Kling
commit 4e5ce7b63e
Notes: sideshowbarker 2024-07-17 02:05:41 +09:00
5 changed files with 46 additions and 1 deletions

View file

@ -13,6 +13,7 @@
#include <LibWeb/HTML/HTMLElement.h>
#include <LibWeb/HTML/HTMLOptionsCollection.h>
#include <LibWeb/HTML/SelectItem.h>
#include <LibWeb/WebIDL/Types.h>
namespace Web::HTML {
@ -28,6 +29,9 @@ public:
virtual void adjust_computed_style(CSS::StyleProperties&) override;
WebIDL::UnsignedLong size() const;
WebIDL::ExceptionOr<void> set_size(WebIDL::UnsignedLong);
JS::GCPtr<HTMLOptionsCollection> const& options();
size_t length();