diff options
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) |