ladybird/Libraries/LibHTML/Frame.h
Sergey Bugaev fd0aa5dd43 LibHTML: Get rid of the style tree
We now create a layout tree directly from the DOM tree.
This way we don't actually lose text nodes ^)
2019-09-28 18:29:42 +02:00

24 lines
411 B
C++

#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;
};