mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andreas Kling
parent
ce23efc5f6
commit
f87041bf3a
@@ -22,7 +22,7 @@ struct VideoFrame {
|
||||
|
||||
class HTMLVideoElement final : public HTMLMediaElement {
|
||||
WEB_PLATFORM_OBJECT(HTMLVideoElement, HTMLMediaElement);
|
||||
JS_DECLARE_ALLOCATOR(HTMLVideoElement);
|
||||
GC_DECLARE_ALLOCATOR(HTMLVideoElement);
|
||||
|
||||
public:
|
||||
virtual ~HTMLVideoElement() override;
|
||||
@@ -36,7 +36,7 @@ public:
|
||||
void set_video_height(u32 video_height) { m_video_height = video_height; }
|
||||
u32 video_height() const;
|
||||
|
||||
void set_video_track(JS::GCPtr<VideoTrack>);
|
||||
void set_video_track(GC::Ptr<VideoTrack>);
|
||||
|
||||
void set_current_frame(Badge<VideoTrack>, RefPtr<Gfx::Bitmap> frame, double position);
|
||||
VideoFrame const& current_frame() const { return m_current_frame; }
|
||||
@@ -60,7 +60,7 @@ private:
|
||||
// https://html.spec.whatwg.org/multipage/media.html#the-video-element:dimension-attributes
|
||||
virtual bool supports_dimension_attributes() const override { return true; }
|
||||
|
||||
virtual JS::GCPtr<Layout::Node> create_layout_node(CSS::StyleProperties) override;
|
||||
virtual GC::Ptr<Layout::Node> create_layout_node(CSS::StyleProperties) override;
|
||||
virtual void adjust_computed_style(CSS::StyleProperties&) override;
|
||||
|
||||
virtual void on_playing() override;
|
||||
@@ -69,14 +69,14 @@ private:
|
||||
|
||||
WebIDL::ExceptionOr<void> determine_element_poster_frame(Optional<String> const& poster);
|
||||
|
||||
JS::GCPtr<HTML::VideoTrack> m_video_track;
|
||||
GC::Ptr<HTML::VideoTrack> m_video_track;
|
||||
VideoFrame m_current_frame;
|
||||
RefPtr<Gfx::Bitmap> m_poster_frame;
|
||||
|
||||
u32 m_video_width { 0 };
|
||||
u32 m_video_height { 0 };
|
||||
|
||||
JS::GCPtr<Fetch::Infrastructure::FetchController> m_fetch_controller;
|
||||
GC::Ptr<Fetch::Infrastructure::FetchController> m_fetch_controller;
|
||||
Optional<DOM::DocumentLoadEventDelayer> m_load_event_delayer;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user