summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Parser/StyleFunctionRule.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-07-12 17:58:47 +0100
committerAndreas Kling <kling@serenityos.org>2021-07-14 13:31:00 +0200
commitffc81cbfad8af71674b8d63706b7166fa71509d5 (patch)
treeec83a4990ba11a2036bb7319486502414e1440e8 /Userland/Libraries/LibWeb/CSS/Parser/StyleFunctionRule.h
parent776b1f45487eb5f541f079239c209d1aa3c9e5cf (diff)
downloadserenity-ffc81cbfad8af71674b8d63706b7166fa71509d5.zip
LibWeb: Use Selectors instead of a String for :not() selectors
Rather than parsing the selector every time we want to check it, we now parse it once at the beginning. A bonus effect of this is that we now support a selector list in :not(), instead of just a single selector, though only when using the new parser.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser/StyleFunctionRule.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/StyleFunctionRule.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/StyleFunctionRule.h b/Userland/Libraries/LibWeb/CSS/Parser/StyleFunctionRule.h
index 7934e9d1b1..ff7bebf517 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/StyleFunctionRule.h
+++ b/Userland/Libraries/LibWeb/CSS/Parser/StyleFunctionRule.h
@@ -24,11 +24,6 @@ public:
String const& name() const { return m_name; }
Vector<StyleComponentValueRule> const& values() const { return m_values; }
- // FIXME: This method is a temporary hack while much of the parser still expects a string, rather than tokens.
- String values_as_string() const
- {
- return "";
- }
String to_string() const;