1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibHTML: Introduce the HtmlView widget

This is a GWidget that can display contents of an HTML document.
It replaces the Frame class.
This commit is contained in:
Sergey Bugaev 2019-09-25 12:44:22 +03:00 committed by Andreas Kling
parent 8a2beaf52b
commit b9493ba783
6 changed files with 119 additions and 70 deletions

View file

@ -1,23 +0,0 @@
#pragma once
#include <LibDraw/Size.h>
#include <LibHTML/DOM/Document.h>
class Frame {
public:
Frame();
~Frame();
Document* document() { return m_document.ptr(); }
const Document* document() const { return m_document.ptr(); }
void set_document(Document*);
void layout();
private:
RefPtr<LayoutNode> generate_layout_tree();
RefPtr<Document> m_document;
Size m_size;
};