summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-01 19:04:00 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-01 20:17:15 +0200
commit918b0b43948f92ef70d8d3107b21a3e087548fad (patch)
tree40f6a8d9df96177e8e23dffa1076493b00e6e3cd /Userland/Libraries/LibWeb
parent1496ad060569f76f4e708e715314d1e06e6fa74c (diff)
downloadserenity-918b0b43948f92ef70d8d3107b21a3e087548fad.zip
LibWeb: Add missing virtual/override/final in CSSStyleRule
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleRule.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h
index 0a1b662a92..a8b55060e9 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h
@@ -15,7 +15,7 @@
namespace Web::CSS {
-class CSSStyleRule : public CSSRule {
+class CSSStyleRule final : public CSSRule {
AK_MAKE_NONCOPYABLE(CSSStyleRule);
AK_MAKE_NONMOVABLE(CSSStyleRule);
@@ -27,13 +27,13 @@ public:
return adopt_ref(*new CSSStyleRule(move(selectors), move(declaration)));
}
- ~CSSStyleRule();
+ virtual ~CSSStyleRule() override;
const NonnullRefPtrVector<Selector>& selectors() const { return m_selectors; }
const CSSStyleDeclaration& declaration() const { return m_declaration; }
- virtual StringView class_name() const { return "CSSStyleRule"; };
- virtual Type type() const { return Type::Style; };
+ virtual StringView class_name() const override { return "CSSStyleRule"; };
+ virtual Type type() const override { return Type::Style; };
String selector_text() const;
void set_selector_text(StringView);