ladybird/Libraries/LibHTML/Frame.h
Andreas Kling 1c0669f010 LibDraw: Introduce (formerly known as SharedGraphics.)
Instead of LibGUI and WindowServer building their own copies of the drawing
and graphics code, let's it in a separate LibDraw library.

This avoids building the code twice, and will encourage better separation
of concerns. :^)
2019-07-18 10:18:16 +02:00

24 lines
474 B
C++

#pragma once
#include <LibHTML/DOM/Document.h>
#include <LibDraw/Size.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<StyledNode> generate_style_tree();
RefPtr<LayoutNode> generate_layout_tree(const StyledNode&);
RefPtr<Document> m_document;
Size m_size;
};