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
parent abb4b6d117
commit 4e5ce7b63e
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();