mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
canvas: Do not update ImageKey during canvas layout (#35719)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
f31043602a
commit
6f6840d63c
17 changed files with 90 additions and 126 deletions
|
@ -120,7 +120,7 @@ pub enum LayoutElementType {
|
|||
|
||||
pub enum HTMLCanvasDataSource {
|
||||
WebGL(ImageKey),
|
||||
Image(IpcSender<CanvasMsg>),
|
||||
Image((ImageKey, CanvasId, IpcSender<CanvasMsg>)),
|
||||
WebGPU(ImageKey),
|
||||
/// transparent black
|
||||
Empty,
|
||||
|
@ -130,7 +130,6 @@ pub struct HTMLCanvasData {
|
|||
pub source: HTMLCanvasDataSource,
|
||||
pub width: u32,
|
||||
pub height: u32,
|
||||
pub canvas_id: CanvasId,
|
||||
}
|
||||
|
||||
pub struct SVGSVGData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue