#pragma once #include #include #include #include #include #include class LayoutNode; class StyleResolver; class StyleSheet; class Document : public ParentNode { public: Document(); virtual ~Document() override; StyleResolver& style_resolver(); void add_sheet(const StyleSheet& sheet) { m_sheets.append(sheet); } const NonnullRefPtrVector& stylesheets() const { return m_sheets; } private: OwnPtr m_style_resolver; NonnullRefPtrVector m_sheets; };