mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +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
|
@ -16,18 +16,18 @@ namespace Web::SVG {
|
|||
// https://svgwg.org/svg2-draft/single-page.html#coords-InterfaceSVGTransformList
|
||||
class SVGTransformList final : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(SVGTransformList, Bindings::PlatformObject);
|
||||
JS_DECLARE_ALLOCATOR(SVGTransformList);
|
||||
GC_DECLARE_ALLOCATOR(SVGTransformList);
|
||||
|
||||
public:
|
||||
[[nodiscard]] static JS::NonnullGCPtr<SVGTransformList> create(JS::Realm& realm);
|
||||
[[nodiscard]] static GC::Ref<SVGTransformList> create(JS::Realm& realm);
|
||||
virtual ~SVGTransformList() override;
|
||||
|
||||
WebIDL::UnsignedLong length();
|
||||
WebIDL::UnsignedLong number_of_items();
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<SVGTransform>> get_item(WebIDL::UnsignedLong index);
|
||||
WebIDL::ExceptionOr<GC::Ref<SVGTransform>> get_item(WebIDL::UnsignedLong index);
|
||||
|
||||
JS::NonnullGCPtr<SVGTransform> append_item(JS::NonnullGCPtr<SVGTransform> new_item);
|
||||
GC::Ref<SVGTransform> append_item(GC::Ref<SVGTransform> new_item);
|
||||
|
||||
private:
|
||||
SVGTransformList(JS::Realm& realm);
|
||||
|
@ -35,7 +35,7 @@ private:
|
|||
virtual void initialize(JS::Realm& realm) override;
|
||||
virtual void visit_edges(Cell::Visitor& visitor) override;
|
||||
|
||||
Vector<JS::NonnullGCPtr<SVGTransform>> m_transforms;
|
||||
Vector<GC::Ref<SVGTransform>> m_transforms;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue