mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
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.
9.9 KiB
9.9 KiB