mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibWeb: Make Web::PageClient GC-allocated
This is a first step towards simplifying the ownership model of Web::Page. Soon Web::Page will store its WebClient as a NonnullGCPtr to help solve lifetime issues of the client being destroyed before the page.
This commit is contained in:
parent
5c0cd0f484
commit
6e6f3a9a8f
11 changed files with 45 additions and 17 deletions
|
@ -32,13 +32,13 @@ public:
|
|||
|
||||
private:
|
||||
class SVGPageClient;
|
||||
SVGDecodedImageData(NonnullOwnPtr<Page>, NonnullOwnPtr<SVGPageClient>, JS::Handle<DOM::Document>, JS::Handle<SVG::SVGSVGElement>);
|
||||
SVGDecodedImageData(NonnullOwnPtr<Page>, JS::Handle<SVGPageClient>, JS::Handle<DOM::Document>, JS::Handle<SVG::SVGSVGElement>);
|
||||
|
||||
RefPtr<Gfx::Bitmap> render(Gfx::IntSize) const;
|
||||
mutable RefPtr<Gfx::ImmutableBitmap> m_immutable_bitmap;
|
||||
|
||||
NonnullOwnPtr<Page> m_page;
|
||||
NonnullOwnPtr<SVGPageClient> m_page_client;
|
||||
JS::Handle<SVGPageClient> m_page_client;
|
||||
|
||||
JS::Handle<DOM::Document> m_document;
|
||||
JS::Handle<SVG::SVGSVGElement> m_root_element;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue