diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-08 16:16:28 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-08 16:16:28 +0100 |
commit | dda6eb0f1f4a02efb489dada2130fc6f57db1582 (patch) | |
tree | fbbeb51708f1dedf7a5fe73fd5de0ee88fba93b0 /Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h | |
parent | 2cff070108caf94061a33b4c8ccdfd8f0b8dbcf2 (diff) | |
download | serenity-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.h | 4 |
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; } |