mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02:00
Every `ImageCache` should be assigned a `Pipeline` and a `WebView`, so that it knows what WebRender instance to create image keys in. This change accomplishes that by splitting the `ImageCache` trait into `ImageCache` and `ImageCacheFactory`. There should only be one `ImageCacheFactory` per process. Testing: This should not change observable behavior and is thus covered by existing tests. Fixes: This is part of #40261. Signed-off-by: Martin Robinson <mrobinson@igalia.com>