mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +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
Notes:
sideshowbarker
2024-07-19 11:55:18 +09:00
Author: https://github.com/bugaevc
Commit: b9493ba783
Pull-request: https://github.com/SerenityOS/serenity/pull/609
Reviewed-by: https://github.com/awesomekling ✅
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