summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-07-01 14:13:48 +0100
committerAndreas Kling <kling@serenityos.org>2021-07-11 23:19:56 +0200
commit89bfde29dc2d9fd27fceb5b1de9cdd7bb5389f3a (patch)
tree5caa21ac8f1fcc32827c919ec9f9ae306107982e /Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h
parenta558916e1f77ed21c49e2e59cd83f09ce2dfa5ac (diff)
downloadserenity-89bfde29dc2d9fd27fceb5b1de9cdd7bb5389f3a.zip
LibWeb: Convert some CSS parser *Rule classes to using pointers
Previously these were all passed around by value, but some of them (StyleComponentValueRule and StyleBlockRule) want to include each other as fields, so this had to change.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h b/Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h
index 84ba7d3ee6..a270351671 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h
+++ b/Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h
@@ -7,12 +7,13 @@
#pragma once
+#include <AK/RefCounted.h>
#include <AK/Vector.h>
#include <LibWeb/CSS/Parser/Token.h>
namespace Web::CSS {
-class StyleBlockRule {
+class StyleBlockRule : public RefCounted<StyleBlockRule> {
friend class Parser;
public:
@@ -31,5 +32,4 @@ private:
Token m_token;
Vector<String> m_values;
};
-
}