mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 03:11:53 +00:00
LibJS: Make JS::Cell a Weakable
This makes things easier downstream of Cell, and is preparation for using weak pointers in prototype chain property caches.
This commit is contained in:
parent
b5a7a8dbfd
commit
3945e1a82a
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/awesomekling
Commit: 3945e1a82a
Pull-request: https://github.com/SerenityOS/serenity/pull/24206
Reviewed-by: https://github.com/kennethmyhra
12 changed files with 13 additions and 31 deletions
|
@ -28,8 +28,7 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
class BrowsingContext final : public JS::Cell
|
||||
, public Weakable<BrowsingContext> {
|
||||
class BrowsingContext final : public JS::Cell {
|
||||
JS_CELL(BrowsingContext, JS::Cell);
|
||||
JS_DECLARE_ALLOCATOR(BrowsingContext);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue