mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb/CSS: Remove unused <an+b># code for pseudo-classes
This revertse7890429aaand partly revertsa59c15481f. The one pseudo-class that accepted multiple of these was :heading(), and since that got changed to take integers instead, there's no need to keep this extra complexity (and memory usage) around.
This commit is contained in:
parent
d461e96f40
commit
f93819eda2
Notes:
github-actions[bot]
2025-08-28 10:41:23 +00:00
Author: https://github.com/AtkinsSJ
Commit: f93819eda2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6009
Reviewed-by: https://github.com/gmta ✅
6 changed files with 8 additions and 62 deletions
|
|
@ -70,7 +70,6 @@ struct PseudoClassMetadata {
|
|||
enum class ParameterType {
|
||||
None,
|
||||
ANPlusB,
|
||||
ANPlusBList,
|
||||
ANPlusBOf,
|
||||
CompoundSelector,
|
||||
ForgivingSelectorList,
|
||||
|
|
@ -170,8 +169,6 @@ PseudoClassMetadata pseudo_class_metadata(PseudoClass pseudo_class)
|
|||
if (is_valid_as_function) {
|
||||
if (argument_string == "<an+b>"sv) {
|
||||
parameter_type = "ANPlusB"_string;
|
||||
} else if (argument_string == "<an+b>#"sv) {
|
||||
parameter_type = "ANPlusBList"_string;
|
||||
} else if (argument_string == "<an+b-of>"sv) {
|
||||
parameter_type = "ANPlusBOf"_string;
|
||||
} else if (argument_string == "<compound-selector>"sv) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue