1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 14:05:08 +00:00

LibHTML: Make TreeNode inherit from Weakable by default

This makes Node and LayoutNode weakable. Frame was already weakable.
This commit is contained in:
Andreas Kling 2019-10-19 09:42:20 +02:00
parent 87d13930ef
commit 877ff6bc13
2 changed files with 3 additions and 5 deletions

View file

@ -2,9 +2,10 @@
#include <AK/Assertions.h>
#include <AK/NonnullRefPtr.h>
#include <AK/Weakable.h>
template<typename T>
class TreeNode {
class TreeNode : public Weakable<T> {
public:
void ref()
{