Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0f607afaf88bff8fddccfbf0312910ae14d2dc7d
      
https://github.com/WebKit/WebKit/commit/0f607afaf88bff8fddccfbf0312910ae14d2dc7d
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-10-08 (Thu, 08 Oct 2026)

  Changed paths:
    M LayoutTests/platform/mac-tahoe-wk2-lbse-text/TestExpectations
    M Source/WebCore/rendering/svg/RenderSVGImage.cpp
    M Source/WebCore/rendering/svg/RenderSVGImage.h

  Log Message:
  -----------
  [LBSE] Fix buffered-rendering="static" for <image> elements
https://bugs.webkit.org/show_bug.cgi?id=326348

Reviewed by Rob Buis.

With buffered-rendering="static", an <image> is first painted into an
offscreen buffer, which is then drawn to the screen. In LBSE, the image
ended up at the wrong place inside the buffer, and without the elements
specified transform. Apply the same logic as the legacy engine: paint
into the buffer relative to the position of the image, then draw the
buffer back with the current transformation.

Covered by existing tests.

* LayoutTests/platform/mac-tahoe-wk2-lbse-text/TestExpectations:
* Source/WebCore/rendering/svg/RenderSVGImage.cpp:
(WebCore::RenderSVGImage::bufferForeground):
* Source/WebCore/rendering/svg/RenderSVGImage.h:

Canonical link: https://commits.webkit.org/323088@main



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

Reply via email to