Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 40eaca3e144ac510731a624515ebabab24ac57f7
      
https://github.com/WebKit/WebKit/commit/40eaca3e144ac510731a624515ebabab24ac57f7
  Author: Rob Buis <[email protected]>
  Date:   2026-04-30 (Thu, 30 Apr 2026)

  Changed paths:
    M Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp

  Log Message:
  -----------
  [LBSE] Prepare RenderSVGResourceClipper.cpp for non-layered SVG elements
https://bugs.webkit.org/show_bug.cgi?id=313733

Reviewed by Nikolas Zimmermann.

Prepare RenderSVGResourceClipper.cpp for non-layered SVG elements by using
custom hit-testing code, since the layer hit test infrastructure does not work 
for children
inside <clipPath> because they are inside a (non-layered) 
RenderSVGHiddenContainer, where
fragment collection and ancestor offset computation produce incorrect results.

For transformed children (with or without layers), inverse-map the point through
the child's SVG transform before testing.

* Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp:
(WebCore::RenderSVGResourceClipper::applyPathClipping):
(WebCore::RenderSVGResourceClipper::hitTestClipContent):

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



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

Reply via email to