summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-07-01 14:54:27 +0100
committerAndreas Kling <kling@serenityos.org>2021-07-11 23:19:56 +0200
commit29d78bba4bd0fa2768a63f365f15f2ad4cfb05e6 (patch)
tree7ee1da5a2e1b5be673dc4dbb1c4e32f5dd0b0913 /Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h
parent89bfde29dc2d9fd27fceb5b1de9cdd7bb5389f3a (diff)
downloadserenity-29d78bba4bd0fa2768a63f365f15f2ad4cfb05e6.zip
LibWeb: Use StyleComponentValueRules for StyleBlockRule's values
Noticed while doing this that attribute selectors have two different ways of saying "starts with", and so AttributeMatchType::StartsWith needs a better name. But I'll change that when I add the missing types. These class names are a mouthful to fit in a commit message. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h b/Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h
index a270351671..63f6cf047b 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h
+++ b/Userland/Libraries/LibWeb/CSS/Parser/StyleBlockRule.h
@@ -9,6 +9,7 @@
#include <AK/RefCounted.h>
#include <AK/Vector.h>
+#include <LibWeb/CSS/Parser/StyleComponentValueRule.h>
#include <LibWeb/CSS/Parser/Token.h>
namespace Web::CSS {
@@ -24,12 +25,12 @@ public:
bool is_paren() const { return m_token.is_open_paren(); }
bool is_square() const { return m_token.is_open_square(); }
- Vector<String> const& values() const { return m_values; }
+ Vector<StyleComponentValueRule> const& values() const { return m_values; }
String to_string() const;
private:
Token m_token;
- Vector<String> m_values;
+ Vector<StyleComponentValueRule> m_values;
};
}