aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/canvas
diff options
context:
space:
mode:
authorsagudev <16504129+sagudev@users.noreply.github.com>2025-03-25 07:38:02 +0100
committerGitHub <noreply@github.com>2025-03-25 06:38:02 +0000
commit62737b3830a24f327018da1a7c006b2289a3fc31 (patch)
treebfa11105970241651afb0ea7a0ee47eecbf0348a /components/shared/canvas
parented995e61a62c560121cf3a32746c633bb0accdf4 (diff)
downloadservo-62737b3830a24f327018da1a7c006b2289a3fc31.tar.gz
servo-62737b3830a24f327018da1a7c006b2289a3fc31.zip
canvas: Update the image as part of update the rendering (#35996)
* Create `update_rendering` in `CanvasState` instead of manually updating in layout Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Mark as dirty and do flushes Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * fixup rebase Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Update components/script/dom/htmlcanvaselement.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/shared/canvas')
-rw-r--r--components/shared/canvas/canvas.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/components/shared/canvas/canvas.rs b/components/shared/canvas/canvas.rs
index 1c04e3c9cc6..1db7675cf42 100644
--- a/components/shared/canvas/canvas.rs
+++ b/components/shared/canvas/canvas.rs
@@ -25,7 +25,6 @@ pub struct CanvasId(pub u64);
#[derive(Debug, Deserialize, Serialize)]
pub enum CanvasMsg {
Canvas2d(Canvas2dMsg, CanvasId),
- FromLayout(FromLayoutMsg, CanvasId),
FromScript(FromScriptMsg, CanvasId),
Recreate(Option<Size2D<u64>>, CanvasId),
Close(CanvasId),
@@ -74,10 +73,6 @@ pub enum Canvas2dMsg {
SetFont(FontStyleStruct),
SetTextAlign(TextAlign),
SetTextBaseline(TextBaseline),
-}
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub enum FromLayoutMsg {
UpdateImage(IpcSender<()>),
}