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:
parent
87d13930ef
commit
877ff6bc13
2 changed files with 3 additions and 5 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue