mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Use WebIDL types where possible instead of C types
This commit is contained in:
parent
f1d6693990
commit
c41b359ca5
Notes:
sideshowbarker
2024-07-17 10:08:28 +09:00
Author: https://github.com/bplaat
Commit: c41b359ca5
Pull-request: https://github.com/SerenityOS/serenity/pull/23352
13 changed files with 32 additions and 24 deletions
|
@ -13,13 +13,14 @@
|
|||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/WebIDL/Buffers.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::Encoding {
|
||||
|
||||
// https://encoding.spec.whatwg.org/#dictdef-textencoderencodeintoresult
|
||||
struct TextEncoderEncodeIntoResult {
|
||||
unsigned long long read;
|
||||
unsigned long long written;
|
||||
WebIDL::UnsignedLongLong read;
|
||||
WebIDL::UnsignedLongLong written;
|
||||
};
|
||||
|
||||
// https://encoding.spec.whatwg.org/#textencoder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue