1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:27:43 +00:00

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
parent 54617e1a91
commit 183ebaee91
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;
};
}