mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibWeb: Use WebIDL types where possible instead of C types
This commit is contained in:
parent
f1d6693990
commit
c41b359ca5
13 changed files with 32 additions and 24 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <LibJS/Heap/GCPtr.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/FileAPI/File.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::FileAPI {
|
||||
|
||||
|
@ -23,7 +24,7 @@ public:
|
|||
virtual ~FileList() override;
|
||||
|
||||
// https://w3c.github.io/FileAPI/#dfn-length
|
||||
unsigned long length() const { return m_files.size(); }
|
||||
WebIDL::UnsignedLong length() const { return m_files.size(); }
|
||||
|
||||
// https://w3c.github.io/FileAPI/#dfn-item
|
||||
File* item(size_t index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue