LibWeb: Pass ImageData as non-const to CanvasImageData mixin methods

CRC2D needs to manipulate the ImageData object in put_image_data()
This commit is contained in:
Andrew Kaster 2025-04-15 15:51:27 -06:00 committed by Andrew Kaster
commit 280ae45210
Notes: github-actions[bot] 2025-04-16 16:44:04 +00:00
3 changed files with 3 additions and 3 deletions

View file

@ -476,7 +476,7 @@ WebIDL::ExceptionOr<GC::Ptr<ImageData>> CanvasRenderingContext2D::get_image_data
}
// https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-putimagedata-short
void CanvasRenderingContext2D::put_image_data(ImageData const& image_data, float x, float y)
void CanvasRenderingContext2D::put_image_data(ImageData& image_data, float x, float y)
{
// The putImageData(imageData, dx, dy) method steps are to put pixels from an ImageData onto a bitmap,
// given imageData, this's output bitmap, dx, dy, 0, 0, imageData's width, and imageData's height.