mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 12:51:53 +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 @@ class HTMLObjectElement final
|
|||
, public ResourceClient
|
||||
, public Layout::ImageProvider {
|
||||
WEB_PLATFORM_OBJECT(HTMLObjectElement, NavigableContainer)
|
||||
JS_DECLARE_ALLOCATOR(HTMLObjectElement);
|
||||
GC_DECLARE_ALLOCATOR(HTMLObjectElement);
|
||||
FORM_ASSOCIATED_ELEMENT(NavigableContainer, HTMLObjectElement)
|
||||
|
||||
enum class Representation {
|
||||
|
@ -58,7 +58,7 @@ private:
|
|||
|
||||
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
|
||||
|
||||
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;
|
||||
|
||||
bool has_ancestor_media_element_or_object_element_not_showing_fallback_content() const;
|
||||
|
@ -85,13 +85,13 @@ private:
|
|||
virtual Optional<CSSPixelFraction> intrinsic_aspect_ratio() const override;
|
||||
virtual RefPtr<Gfx::ImmutableBitmap> current_image_bitmap(Gfx::IntSize = {}) const override;
|
||||
virtual void set_visible_in_viewport(bool) override;
|
||||
virtual JS::NonnullGCPtr<DOM::Element const> to_html_element() const override { return *this; }
|
||||
virtual GC::Ref<DOM::Element const> to_html_element() const override { return *this; }
|
||||
|
||||
Representation m_representation { Representation::Unknown };
|
||||
|
||||
JS::GCPtr<DecodedImageData> image_data() const;
|
||||
GC::Ptr<DecodedImageData> image_data() const;
|
||||
|
||||
JS::GCPtr<SharedResourceRequest> m_resource_request;
|
||||
GC::Ptr<SharedResourceRequest> m_resource_request;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue