mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-05 01:10:24 +00:00
LibGfx+LibWeb: Fix compile errors in clang-cl from recent header cleanup
The recent commits28ba610f32and70c4ed261fadjusted 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:
committed by
Tim Flynn
parent
0eceee0a05
commit
ce2c4a3417
Notes:
github-actions[bot]
2025-11-30 13:46:40 +00:00
Author: https://github.com/InvalidUsernameException Commit: https://github.com/LadybirdBrowser/ladybird/commit/ce2c4a3417e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6973 Reviewed-by: https://github.com/trflynn89
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
@@ -58,6 +58,8 @@ ImageBitmap::ImageBitmap(JS::Realm& realm)
|
||||
{
|
||||
}
|
||||
|
||||
ImageBitmap::~ImageBitmap() = default;
|
||||
|
||||
void ImageBitmap::initialize(JS::Realm& realm)
|
||||
{
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(ImageBitmap);
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user