mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 23:39:02 +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
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue