diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2022-07-25 23:08:55 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-26 20:54:30 +0100 |
commit | df91dbfbb631e032d5cacef8077709ee3f0303b7 (patch) | |
tree | 2d9e17127b978774ee18f93614a6a5bcc4a1a835 /Userland/Libraries/LibWeb/FileAPI/Blob.h | |
parent | 6305ef197ff1678ee0f29bd15919aa15f1e7f39f (diff) | |
download | serenity-df91dbfbb631e032d5cacef8077709ee3f0303b7.zip |
LibWeb: Add missing spec links to the Blob interface
Diffstat (limited to 'Userland/Libraries/LibWeb/FileAPI/Blob.h')
-rw-r--r-- | Userland/Libraries/LibWeb/FileAPI/Blob.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/FileAPI/Blob.h b/Userland/Libraries/LibWeb/FileAPI/Blob.h index 40b01498e9..064e75275d 100644 --- a/Userland/Libraries/LibWeb/FileAPI/Blob.h +++ b/Userland/Libraries/LibWeb/FileAPI/Blob.h @@ -40,7 +40,9 @@ public: static DOM::ExceptionOr<NonnullRefPtr<Blob>> create(Optional<Vector<BlobPart>> const& blob_parts = {}, Optional<BlobPropertyBag> const& options = {}); static DOM::ExceptionOr<NonnullRefPtr<Blob>> create_with_global_object(Bindings::WindowObject&, Optional<Vector<BlobPart>> const& blob_parts = {}, Optional<BlobPropertyBag> const& options = {}); + // https://w3c.github.io/FileAPI/#dfn-size u64 size() const { return m_byte_buffer.size(); } + // https://w3c.github.io/FileAPI/#dfn-type String const& type() const { return m_type; } DOM::ExceptionOr<NonnullRefPtr<Blob>> slice(Optional<i64> start = {}, Optional<i64> end = {}, Optional<String> const& content_type = {}); |