1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

LibWeb: Move IDLAbstractOperations from Bindings/ to WebIDL/

This commit is contained in:
Linus Groh 2022-09-24 16:14:37 +01:00
parent 4f73851afc
commit 6480faacb6
13 changed files with 28 additions and 28 deletions

View file

@ -6,9 +6,9 @@
#include <AK/FlyString.h>
#include <LibJS/Runtime/TypedArray.h>
#include <LibWeb/Bindings/IDLAbstractOperations.h>
#include <LibWeb/Encoding/TextDecoder.h>
#include <LibWeb/HTML/Window.h>
#include <LibWeb/WebIDL/AbstractOperations.h>
namespace Web::Encoding {
@ -39,7 +39,7 @@ DOM::ExceptionOr<String> TextDecoder::decode(JS::Handle<JS::Object> const& input
{
// FIXME: Implement the streaming stuff.
auto data_buffer_or_error = Bindings::IDL::get_buffer_source_copy(*input.cell());
auto data_buffer_or_error = WebIDL::get_buffer_source_copy(*input.cell());
if (data_buffer_or_error.is_error())
return DOM::OperationError::create(global_object(), "Failed to copy bytes from ArrayBuffer");
auto& data_buffer = data_buffer_or_error.value();