mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 15:21:56 +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
|
@ -10,8 +10,8 @@
|
|||
#include <AK/StringBuilder.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/Time.h>
|
||||
#include <LibGC/Ptr.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/GCPtr.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <LibWeb/DOM/EventTarget.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
@ -26,12 +26,12 @@ struct EventSourceInit {
|
|||
|
||||
class EventSource : public DOM::EventTarget {
|
||||
WEB_PLATFORM_OBJECT(EventSource, DOM::EventTarget);
|
||||
JS_DECLARE_ALLOCATOR(EventSource);
|
||||
GC_DECLARE_ALLOCATOR(EventSource);
|
||||
|
||||
public:
|
||||
virtual ~EventSource() override;
|
||||
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<EventSource>> construct_impl(JS::Realm&, StringView url, EventSourceInit event_source_init_dict = {});
|
||||
static WebIDL::ExceptionOr<GC::Ref<EventSource>> construct_impl(JS::Realm&, StringView url, EventSourceInit event_source_init_dict = {});
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/server-sent-events.html#dom-eventsource-url
|
||||
String url() const { return MUST(String::from_byte_string(m_url.serialize())); }
|
||||
|
@ -79,7 +79,7 @@ private:
|
|||
URL::URL m_url;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/server-sent-events.html#concept-event-stream-request
|
||||
JS::GCPtr<Fetch::Infrastructure::Request> m_request;
|
||||
GC::Ptr<Fetch::Infrastructure::Request> m_request;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/server-sent-events.html#concept-event-stream-reconnection-time
|
||||
AK::Duration m_reconnection_time { AK::Duration::from_seconds(3) };
|
||||
|
@ -94,8 +94,8 @@ private:
|
|||
|
||||
ReadyState m_ready_state { ReadyState::Connecting };
|
||||
|
||||
JS::GCPtr<Fetch::Infrastructure::FetchAlgorithms> m_fetch_algorithms;
|
||||
JS::GCPtr<Fetch::Infrastructure::FetchController> m_fetch_controller;
|
||||
GC::Ptr<Fetch::Infrastructure::FetchAlgorithms> m_fetch_algorithms;
|
||||
GC::Ptr<Fetch::Infrastructure::FetchController> m_fetch_controller;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue