diff --git a/Userland/Libraries/LibWeb/DOM/Element.h b/Userland/Libraries/LibWeb/DOM/Element.h index 0b9619651e..86fe0fc816 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.h +++ b/Userland/Libraries/LibWeb/DOM/Element.h @@ -19,8 +19,8 @@ #include #include #include +#include #include -#include #include #include diff --git a/Userland/Libraries/LibWeb/Forward.h b/Userland/Libraries/LibWeb/Forward.h index 6b5723f1c8..e5bf9e62da 100644 --- a/Userland/Libraries/LibWeb/Forward.h +++ b/Userland/Libraries/LibWeb/Forward.h @@ -7,6 +7,7 @@ #pragma once +#include #include namespace Web { @@ -582,6 +583,8 @@ class DOMException; template class ExceptionOr; + +using Promise = JS::PromiseCapability; } namespace Web::WebSockets { diff --git a/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp b/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp index 64a3fa288f..7d8ee131f0 100644 --- a/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp +++ b/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp @@ -5,6 +5,7 @@ */ #include +#include #include #include #include diff --git a/Userland/Libraries/LibWeb/HTML/ScrollOptions.h b/Userland/Libraries/LibWeb/HTML/ScrollOptions.h new file mode 100644 index 0000000000..288659f4fd --- /dev/null +++ b/Userland/Libraries/LibWeb/HTML/ScrollOptions.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2023, Andreas Kling + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include + +namespace Web::HTML { + +// https://w3c.github.io/csswg-drafts/cssom-view/#dictdef-scrolloptions +struct ScrollOptions { + Bindings::ScrollBehavior behavior { Bindings::ScrollBehavior::Auto }; +}; + +} diff --git a/Userland/Libraries/LibWeb/HTML/Window.h b/Userland/Libraries/LibWeb/HTML/Window.h index be0b944a5e..a764fcdc87 100644 --- a/Userland/Libraries/LibWeb/HTML/Window.h +++ b/Userland/Libraries/LibWeb/HTML/Window.h @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -30,11 +31,6 @@ namespace Web::HTML { class IdleCallback; -// https://w3c.github.io/csswg-drafts/cssom-view/#dictdef-scrolloptions -struct ScrollOptions { - Bindings::ScrollBehavior behavior { Bindings::ScrollBehavior::Auto }; -}; - // https://w3c.github.io/csswg-drafts/cssom-view/#dictdef-scrolltooptions struct ScrollToOptions : public ScrollOptions { Optional left; diff --git a/Userland/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp index a3ab138710..aa700a6d2d 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include