mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
canvas: Use strum::{Display, EnumString} for canvas enums (#37670)
This makes it easier to add variants, I also added some spec links and reordered enum variants to match the spec. Testing: Just refactor, but the code is covered by WPT tests. Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
2dc62c504f
commit
ef7be66c56
5 changed files with 82 additions and 202 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -825,6 +825,7 @@ dependencies = [
|
|||
"serde_bytes",
|
||||
"servo_config",
|
||||
"servo_malloc_size_of",
|
||||
"strum",
|
||||
"stylo",
|
||||
"webrender_api",
|
||||
"webxr-api",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue