LibWeb/Canvas: Correctly return globalCompositeOperation

This fixes a bug that caused the retrieved `globalCompositeOperation`
to contain quotes.
This commit is contained in:
Glenn Skrzypczak
2025-02-23 20:24:27 +01:00
committed by Tim Ledbetter
parent f672c57ca7
commit 64a234c0df
3 changed files with 179 additions and 1 deletions

View File

@@ -796,7 +796,7 @@ String CanvasRenderingContext2D::global_composite_operation() const
#undef __ENUMERATE
#define __ENUMERATE(operation, compositing_and_blending_operator) \
case Gfx::CompositingAndBlendingOperator::compositing_and_blending_operator: \
return #operation##_string;
return operation##_string;
ENUMERATE_COMPOSITE_OPERATIONS(__ENUMERATE)
#undef __ENUMERATE
default: