diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2024-09-22 16:04:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-22 14:04:53 +0000 |
commit | 3e29131d642b3273fe4f302f9a29602289ae8616 (patch) | |
tree | 593f9d946c47ddcce034671b1cb56b615509aaec /components/shared/script_layout/lib.rs | |
parent | bab769a7cff3309819fb0efb60b279b53e483165 (diff) | |
download | servo-3e29131d642b3273fe4f302f9a29602289ae8616.tar.gz servo-3e29131d642b3273fe4f302f9a29602289ae8616.zip |
Add `HTMLCanvasDataSource::Empty` that represent transparent black instead of `HTMLCanvasDataSource::Image(None)` (#33519)
* `HTMLCanvasDataSource::Empty` that represent transparent black instead of Image(None)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Fix warning from 3a0d27b2312c6396e85178615290ac2ec3592ce1
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/shared/script_layout/lib.rs')
-rw-r--r-- | components/shared/script_layout/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/shared/script_layout/lib.rs b/components/shared/script_layout/lib.rs index 3969cc332fb..67f95327453 100644 --- a/components/shared/script_layout/lib.rs +++ b/components/shared/script_layout/lib.rs @@ -116,8 +116,10 @@ pub enum LayoutElementType { pub enum HTMLCanvasDataSource { WebGL(ImageKey), - Image(Option<IpcSender<CanvasMsg>>), + Image(IpcSender<CanvasMsg>), WebGPU(ImageKey), + /// transparent black + Empty, } pub struct HTMLCanvasData { |