LibWeb: Add actual document loading for the CSS (at)import rule

This commit is contained in:
Sviatoslav Peleshko 2021-02-21 18:44:17 +02:00 committed by Andreas Kling
commit 183ebaee91
Notes: sideshowbarker 2024-07-18 21:52:10 +09:00
11 changed files with 229 additions and 56 deletions

View file

@ -45,6 +45,11 @@ public:
const URL& url() const { return m_url; }
bool has_import_result() const { return !m_style_sheet.is_null(); }
RefPtr<StyleSheet> loaded_style_sheet() { return m_style_sheet; }
const RefPtr<StyleSheet> loaded_style_sheet() const { return m_style_sheet; }
void set_style_sheet(const RefPtr<StyleSheet>& style_sheet) { m_style_sheet = style_sheet; }
virtual StringView class_name() const { return "CSSImportRule"; };
virtual Type type() const { return Type::Import; };
@ -52,6 +57,7 @@ private:
CSSImportRule(URL);
URL m_url;
RefPtr<StyleSheet> m_style_sheet;
};
}