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