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:
parent
8a2beaf52b
commit
b9493ba783
6 changed files with 119 additions and 70 deletions
|
@ -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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue