Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 19dc6319eb8e109fac06996310c0ed9e91219f20
      
https://github.com/WebKit/WebKit/commit/19dc6319eb8e109fac06996310c0ed9e91219f20
  Author: Sam Weinig <[email protected]>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M Source/WebCore/rendering/BackgroundPainter.cpp
    M Source/WebCore/rendering/RenderImage.cpp

  Log Message:
  -----------
  [Image Redux] Only record that an image painted when drawing it did something
https://bugs.webkit.org/show_bug.cgi?id=326032

Reviewed by Simon Fraser.

In preparation for having Style::Image internally resolve its WebCore::Image, 
we need to add
checks to ensure that the image draws actually did something before calling 
Element::setHasEverPaintedImages().
With non-internally resolved WebCore::Image, a null image causes an early 
return making the
checks unnecessary.

* Source/WebCore/rendering/BackgroundPainter.cpp:
*
Source/WebCore/rendering/RenderImage.cpp:

Canonical link: 
https://flagged.apple.com:443/proxy?t2=Dh3F0X4Vb4&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzIyNDc0QG1haW4=&emid=f39b6132-a2b5-4061-a235-d7e5510b182e&c=11



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to