#pragma once #include #include #include #include #include #include #include class Document; class Frame : public TreeNode , public Weakable { public: static NonnullRefPtr create() { return adopt(*new Frame); } ~Frame(); const Document* document() const { return m_document; } Document* document() { return m_document; } void set_document(Document*); const Size& size() const { return m_size; } void set_size(const Size&); void set_needs_display(const Rect&); Function on_set_needs_display; private: Frame(); RefPtr m_document; Size m_size; };