mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Move ExceptionOr from DOM/ to WebIDL/
This is a concept fully defined in the Web IDL spec and doesn't belong in the DOM directory/namespace - not even DOMException, despite the name :^)
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
#include <AK/HashMap.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/DOM/ExceptionOr.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
size_t length() const;
|
||||
String key(size_t index);
|
||||
String get_item(String const& key) const;
|
||||
DOM::ExceptionOr<void> set_item(String const& key, String const& value);
|
||||
WebIDL::ExceptionOr<void> set_item(String const& key, String const& value);
|
||||
void remove_item(String const& key);
|
||||
void clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user