1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00
ladybird/Libraries/LibWeb/DOM/DocumentLoadEventDelayer.h
Timothy Flynn 874e094ed8 LibWeb: Allow moving document load event delayers
This allows us to store lists of delayers.
2025-05-22 17:44:40 -04:00

30 lines
585 B
C++

/*
* Copyright (c) 2021, Andreas Kling <andreas@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Noncopyable.h>
#include <LibGC/Root.h>
#include <LibWeb/Forward.h>
namespace Web::DOM {
class DocumentLoadEventDelayer {
AK_MAKE_NONCOPYABLE(DocumentLoadEventDelayer);
public:
explicit DocumentLoadEventDelayer(Document&);
DocumentLoadEventDelayer(DocumentLoadEventDelayer&&);
DocumentLoadEventDelayer& operator=(DocumentLoadEventDelayer&&);
~DocumentLoadEventDelayer();
private:
GC::Root<Document> m_document;
};
}