Files
ladybird/Libraries/LibWeb/HTML/ImageData.cpp
Andreas Kling 2a93576915 LibWeb: Store ImageData.data as own property for IC friendliness
The IDL-generated getter for ImageData.data lives on ImageDataPrototype,
which means every access goes through a getter call that cannot be
cached by the GetById inline cache.

By also storing the Uint8ClampedArray as an own data property directly
on each ImageData instance, the prototype getter is shadowed and
GetById can cache the access like any other data property. This matches
the approach used by WebKit and is compatible with web expectations.
2026-03-19 09:42:04 +01:00

9.9 KiB