summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSImportRule.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSImportRule.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSImportRule.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSImportRule.h b/Userland/Libraries/LibWeb/CSS/CSSImportRule.h
index 7607239528..0fc32e60f3 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSImportRule.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSImportRule.h
@@ -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;
};
}