Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: abd3e51d2c89d2fe0d0f4e69892e079bf7c69b40
https://github.com/WebKit/WebKit/commit/abd3e51d2c89d2fe0d0f4e69892e079bf7c69b40
Author: Sam Weinig <[email protected]>
Date: 2026-10-09 (Fri, 09 Oct 2026)
Changed paths:
M Source/WebCore/rendering/RenderImage.cpp
Log Message:
-----------
[Image Redux] Don't rely on CachedImage::image() returning the broken image
when check if it will fit
https://bugs.webkit.org/show_bug.cgi?id=326840
Reviewed by Darin Adler.
RenderImage::paintMissingImageState() was relying on CachedImage::image() to
return a broken image when measuring to see
if one would fit, but then a line later, re-fetched the broken image
explicitly. There is no reason to rely on the
CachedImage::image() behavior here when we can easily just use the explicit
access. This also simplifies things as the
broken images are explicitly bitmap images, so getting their size directly is
allowed.
* Source/WebCore/rendering/RenderImage.cpp:
(WebCore::RenderImage::paintMissingImageState const):
Canonical link: https://commits.webkit.org/323216@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications