mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Make HTML::SharedImageRequest GC allocated
This allows to partially solve the problem of cyclic dependency between HTMLImageElement and SharedImageRequest that prevents all image elements from being deallocated.
This commit is contained in:
committed by
Andreas Kling
parent
bbfedf2e5a
commit
934afcb9d5
Notes:
sideshowbarker
2024-07-17 06:46:15 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/934afcb9d5 Pull-request: https://github.com/SerenityOS/serenity/pull/20638
@@ -45,6 +45,8 @@ public:
|
||||
// https://html.spec.whatwg.org/multipage/forms.html#category-listed
|
||||
virtual bool is_listed() const override { return true; }
|
||||
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
private:
|
||||
HTMLObjectElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
@@ -80,7 +82,7 @@ private:
|
||||
|
||||
RefPtr<DecodedImageData const> image_data() const;
|
||||
|
||||
RefPtr<SharedImageRequest> m_image_request;
|
||||
JS::GCPtr<SharedImageRequest> m_image_request;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user