mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +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
|
@ -26,6 +26,7 @@ pixels = { path = "../../pixels" }
|
|||
serde = { workspace = true }
|
||||
serde_bytes = { workspace = true }
|
||||
servo_config = { path = "../../config" }
|
||||
strum = { workspace = true }
|
||||
stylo = { workspace = true }
|
||||
webrender_api = { workspace = true }
|
||||
webxr-api = { workspace = true, features = ["ipc"] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue