1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:25: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

@ -3,16 +3,13 @@
#include <AK/Function.h>
#include <AK/Noncopyable.h>
#include <AK/RefPtr.h>
#include <AK/Weakable.h>
#include <LibDraw/Rect.h>
#include <LibDraw/Size.h>
#include <LibHTML/TreeNode.h>
class Document;
class Frame
: public TreeNode<Frame>
, public Weakable<Frame> {
class Frame : public TreeNode<Frame> {
public:
static NonnullRefPtr<Frame> create() { return adopt(*new Frame); }
~Frame();