mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 23:42:52 +00:00
LibGC+Everywhere: Factor out a LibGC from LibJS
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
This commit is contained in:
parent
ce23efc5f6
commit
f87041bf3a
Notes:
github-actions[bot]
2024-11-15 13:50:17 +00:00
Author: https://github.com/shannonbooth
Commit: f87041bf3a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2345
1722 changed files with 9939 additions and 9906 deletions
|
@ -11,9 +11,9 @@
|
|||
#include <AK/HashMap.h>
|
||||
#include <AK/Queue.h>
|
||||
#include <AK/SourceLocation.h>
|
||||
#include <LibGC/Root.h>
|
||||
#include <LibIPC/ConnectionFromClient.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/Handle.h>
|
||||
#include <LibWeb/CSS/PreferredColorScheme.h>
|
||||
#include <LibWeb/CSS/PreferredContrast.h>
|
||||
#include <LibWeb/CSS/PreferredMotion.h>
|
||||
|
@ -48,7 +48,7 @@ public:
|
|||
Function<void(IPC::File const&)> on_image_decoder_connection;
|
||||
|
||||
private:
|
||||
explicit ConnectionFromClient(JS::Heap&, IPC::Transport);
|
||||
explicit ConnectionFromClient(GC::Heap&, IPC::Transport);
|
||||
|
||||
Optional<PageClient&> page(u64 index, SourceLocation = SourceLocation::current());
|
||||
Optional<PageClient const&> page(u64 index, SourceLocation = SourceLocation::current()) const;
|
||||
|
@ -150,7 +150,7 @@ private:
|
|||
|
||||
void report_finished_handling_input_event(u64 page_id, Web::EventResult event_was_handled);
|
||||
|
||||
JS::Heap& m_heap;
|
||||
GC::Heap& m_heap;
|
||||
NonnullOwnPtr<PageHost> m_page_host;
|
||||
|
||||
HashMap<int, Web::FileRequest> m_requested_files {};
|
||||
|
@ -167,7 +167,7 @@ private:
|
|||
|
||||
Queue<QueuedInputEvent> m_input_event_queue;
|
||||
|
||||
JS::Handle<Web::Platform::Timer> m_input_event_queue_timer;
|
||||
GC::Root<Web::Platform::Timer> m_input_event_queue_timer;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue