ladybird/Userland/Libraries/LibWeb/CSS/Parser
Andreas Kling 1dd4e2dc87 LibWeb: Cache lowercased names in SimpleSelector
When matching selectors in HTML documents, we know that all the elements
have lowercase local names already (the parser makes sure of this.)

Style sheets still need to remember the original name strings, in case
we want to match against non-HTML content like XML/SVG. To make the
common HTML case faster, we now cache a lowercase version of the name
with each type/class/id SimpleSelector.

This makes tag type checks O(1) instead of O(n).
2022-09-15 16:16:56 +02:00
..
Block.cpp Everywhere: Replace single-char StringView op. arguments with chars 2022-07-12 23:11:35 +02:00
Block.h LibWeb: Break friendship between CSS Block and Parser 2022-04-12 23:03:46 +02:00
ComponentValue.cpp LibWeb: Print correct value types in ComponentValue debug string 2022-06-10 22:32:29 +01:00
ComponentValue.h LibWeb: Add missing include to ComponentValue.h 2022-04-12 23:03:46 +02:00
Declaration.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
Declaration.h LibWeb: Break friendship between CSS Declaration and Parser 2022-04-12 23:03:46 +02:00
DeclarationOrAtRule.cpp LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
DeclarationOrAtRule.h LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
Function.cpp Everywhere: Replace single-char StringView op. arguments with chars 2022-07-12 23:11:35 +02:00
Function.h LibWeb: Break friendship between CSS Function and Parser 2022-04-12 23:03:46 +02:00
Parser.cpp LibWeb: Cache lowercased names in SimpleSelector 2022-09-15 16:16:56 +02:00
Parser.h LibWeb: Allow data: URLs with font/ MIME type in @font-face CSS rules 2022-09-14 21:14:16 +02:00
Rule.cpp Everywhere: Replace single-char StringView op. arguments with chars 2022-07-12 23:11:35 +02:00
Rule.h LibWeb: Rename StyleRule -> Rule 2022-04-12 23:03:46 +02:00
Token.cpp LibWeb: Include sign in token debug info, if the type has explicit sign 2022-05-08 16:29:06 +02:00
Token.h LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00
Tokenizer.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
Tokenizer.h LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00