LibGfx+LibWeb: Fix compile errors in clang-cl from recent header cleanup

The recent commits 28ba610f32 and
70c4ed261f adjusted some include
directives to avoid excessive recompilation when changing some header
files. This has broken compilation with clang-cl on Windows without
getting noticed before the PRs were merged.
This commit is contained in:
InvalidUsernameException
2025-11-29 10:16:38 +01:00
committed by Tim Flynn
parent 0eceee0a05
commit ce2c4a3417
Notes: github-actions[bot] 2025-11-30 13:46:40 +00:00
5 changed files with 8 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibGfx/Bitmap.h>
#include <LibGfx/Painter.h>
#include <LibGfx/PainterSkia.h>
#include <LibGfx/PaintingSurface.h>

View File

@@ -40,6 +40,8 @@ CSSImportRule::CSSImportRule(JS::Realm& realm, URL url, GC::Ptr<DOM::Document> d
{
}
CSSImportRule::~CSSImportRule() = default;
void CSSImportRule::initialize(JS::Realm& realm)
{
WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSImportRule);

View File

@@ -13,6 +13,7 @@
#include <LibWeb/CSS/URL.h>
#include <LibWeb/DOM/DocumentLoadEventDelayer.h>
#include <LibWeb/Export.h>
#include <LibWeb/Forward.h>
namespace Web::CSS {
@@ -24,7 +25,7 @@ class WEB_API CSSImportRule final
public:
[[nodiscard]] static GC::Ref<CSSImportRule> create(JS::Realm&, URL, GC::Ptr<DOM::Document>, RefPtr<Supports>, Vector<NonnullRefPtr<MediaQuery>>);
virtual ~CSSImportRule() = default;
virtual ~CSSImportRule();
URL const& url() const { return m_url; }
String href() const { return m_url.url(); }

View File

@@ -58,6 +58,8 @@ ImageBitmap::ImageBitmap(JS::Realm& realm)
{
}
ImageBitmap::~ImageBitmap() = default;
void ImageBitmap::initialize(JS::Realm& realm)
{
WEB_SET_PROTOTYPE_FOR_INTERFACE(ImageBitmap);

View File

@@ -35,7 +35,7 @@ class ImageBitmap final : public Bindings::PlatformObject
public:
static GC::Ref<ImageBitmap> create(JS::Realm&);
virtual ~ImageBitmap() override = default;
virtual ~ImageBitmap() override;
// ^Web::Bindings::Serializable
virtual HTML::SerializeType serialize_type() const override { return HTML::SerializeType::ImageBitmap; }