summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-08 16:16:28 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-08 16:16:28 +0100
commitdda6eb0f1f4a02efb489dada2130fc6f57db1582 (patch)
treefbbeb51708f1dedf7a5fe73fd5de0ee88fba93b0 /Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h
parent2cff070108caf94061a33b4c8ccdfd8f0b8dbcf2 (diff)
downloadserenity-dda6eb0f1f4a02efb489dada2130fc6f57db1582.zip
LibWeb: Implement StyleSheet.type
This just returns "text/css" on CSSStyleSheet, nothing exciting.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h
index 11b9cc6a99..a73416a126 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h
@@ -44,7 +44,9 @@ public:
return adopt(*new CSSStyleSheet(move(rules)));
}
- virtual ~CSSStyleSheet();
+ virtual ~CSSStyleSheet() override;
+
+ virtual String type() const override { return "text/css"; }
const NonnullRefPtrVector<CSSRule>& rules() const { return m_rules; }
NonnullRefPtrVector<CSSRule>& rules() { return m_rules; }