diff options
author | Sam Atkins <atkinssj@gmail.com> | 2021-07-01 14:13:48 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-11 23:19:56 +0200 |
commit | 89bfde29dc2d9fd27fceb5b1de9cdd7bb5389f3a (patch) | |
tree | 5caa21ac8f1fcc32827c919ec9f9ae306107982e /Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h | |
parent | a558916e1f77ed21c49e2e59cd83f09ce2dfa5ac (diff) | |
download | serenity-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.h | 4 |
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; }; - } |