ladybird/Tests/LibWeb/Text/expected/wpt-import/html/semantics/embedded-content
Erik Kurzinger 42339be999 LibWeb: Use intrinsic size for current_image_bitmap
Currently, ImageProvider::current_image_bitmap takes a Gfx::IntSize
argument which determines the size of the returned bitmap. The default
value of this argument is 0x0 which causes the function to return
nullptr. This behavior is evidently unintuitive enough that it has lead
to incorrect usage in multiple places. For example, the 2D canvas
drawImage method will never actually draw anything because it calls
current_image_bitmap with no arguments. And the naturalWidth and
naturalHeight of an image will always return 0 (even after the image has
loaded) for the same reason.

To correct this and hopefully avoid similar issues in the future,
ImageProvider::current_image_bitmap will be renamed to
current_image_bitmap_sized, and the default value for the size argument
will be removed. For consistency, a similar change will be made to
SVGImageElement::default_image_bitmap.

The existing current_image_bitmap function will no longer take a size
argument. Instead it will always return a bitmap of the image's
intrinsic size. This seems to be what most existing callers had already
assumed was the function's behavior.
2025-08-30 15:49:11 +02:00
..
media-elements LibWeb: Resolve FIXME in media select resource algorithm 2025-06-16 23:28:10 +12:00
the-canvas-element LibWeb: Report exceptions that occur during microtask callback 2024-12-19 15:25:08 +00:00
the-iframe-element LibWeb: Parse and propagate the iframe sandbox attribute 2025-08-07 19:24:39 +02:00
the-img-element LibWeb: Use intrinsic size for current_image_bitmap 2025-08-30 15:49:11 +02:00
the-object-element LibWeb: Import setCustomValidity related tests 2025-02-18 10:17:06 -07:00
the-video-element LibWeb: Resolve FIXME in media select resource algorithm 2025-06-16 23:28:10 +12:00