mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:37:43 +00:00
LibWeb: Ensure the number of pseudo elements stays up-to-date
The ::placeholder pseudo element was added in commit 1fbad9c
, but the
total number of pseudo elements was not updated. Instead of this manual
bookkeeping, add a dummy value at the end of the enumeration for the
count.
This commit is contained in:
parent
c21e9a415d
commit
fddbc2e378
3 changed files with 9 additions and 2 deletions
|
@ -508,6 +508,9 @@ void dump_selector(StringBuilder& builder, CSS::Selector const& selector)
|
|||
case CSS::Selector::PseudoElement::Placeholder:
|
||||
pseudo_element_description = "placeholder";
|
||||
break;
|
||||
case CSS::Selector::PseudoElement::PseudoElementCount:
|
||||
VERIFY_NOT_REACHED();
|
||||
break;
|
||||
}
|
||||
|
||||
builder.appendff(" pseudo_element={}", pseudo_element_description);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue