mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-14 21:11:57 +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
Notes:
sideshowbarker
2024-07-19 11:38:40 +09:00
Author: https://github.com/awesomekling
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