2021-09-26 01:03:42 +02:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2021, Andreas Kling <andreas@ladybird.org>
|
2021-09-26 01:03:42 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/Noncopyable.h>
|
2024-11-15 04:01:23 +13:00
|
|
|
#include <LibGC/Root.h>
|
2021-09-26 01:03:42 +02:00
|
|
|
#include <LibWeb/Forward.h>
|
|
|
|
|
|
|
|
namespace Web::DOM {
|
|
|
|
|
|
|
|
class DocumentLoadEventDelayer {
|
|
|
|
AK_MAKE_NONMOVABLE(DocumentLoadEventDelayer);
|
|
|
|
AK_MAKE_NONCOPYABLE(DocumentLoadEventDelayer);
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit DocumentLoadEventDelayer(Document&);
|
|
|
|
~DocumentLoadEventDelayer();
|
|
|
|
|
|
|
|
private:
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Root<Document> m_document;
|
2021-09-26 01:03:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|