diff options
author | Linus Groh <mail@linusgroh.de> | 2022-09-25 17:03:42 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-09-25 19:13:31 +0100 |
commit | ad04d7ac9b88ecea572cf517f6e01ccf1e95073d (patch) | |
tree | ed33bb942b1bdef7163972425057435a7d8eeaf9 /Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp | |
parent | c0eda779287d4b1305046164cd0a8ee5a5799e0b (diff) | |
download | serenity-ad04d7ac9b88ecea572cf517f6e01ccf1e95073d.zip |
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
:^)
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp b/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp index 213d301e81..e0e0b398c4 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp +++ b/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp @@ -5,9 +5,9 @@ */ #include <AK/QuickSort.h> -#include <LibWeb/DOM/ExceptionOr.h> #include <LibWeb/HTML/CanvasGradient.h> #include <LibWeb/HTML/Window.h> +#include <LibWeb/WebIDL/ExceptionOr.h> namespace Web::HTML { @@ -49,7 +49,7 @@ CanvasGradient::CanvasGradient(HTML::Window& window, Type type) CanvasGradient::~CanvasGradient() = default; // https://html.spec.whatwg.org/multipage/canvas.html#dom-canvasgradient-addcolorstop -DOM::ExceptionOr<void> CanvasGradient::add_color_stop(double offset, String const& color) +WebIDL::ExceptionOr<void> CanvasGradient::add_color_stop(double offset, String const& color) { // 1. If the offset is less than 0 or greater than 1, then throw an "IndexSizeError" DOMException. if (offset < 0 || offset > 1) |