Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8c5024f26d63d29271869b2a0833832a95eb452f
      
https://github.com/WebKit/WebKit/commit/8c5024f26d63d29271869b2a0833832a95eb452f
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-08-02 (Sun, 02 Aug 2026)

  Changed paths:
    M Source/WebCore/rendering/ReferencedSVGResources.cpp

  Log Message:
  -----------
  [LBSE] Support external and data: URL clip-path, marker and paint-server 
references
https://bugs.webkit.org/show_bug.cgi?id=320796

Reviewed by Rob Buis.

The LBSE resource resolvers in ReferencedSVGResources only looked up the
fragment in the local document, so external (url(file.svg#id)) and data:
URL references to clip-paths, markers and paint servers never resolved.
The legacy engine already handles these through externalResourceDocument()
in SVGResources.cpp, and referencedFilterElement already did the same here.

This forward-ports to LBSE the external/data: URL resolution the legacy
engine gained in:

  https://commits.webkit.org/317649@main Support external and data: URL 
clip-path references on SVG elements
  https://commits.webkit.org/317774@main Support external and data: URL 
clip-path references on HTML elements
  https://commits.webkit.org/317614@main Support external and data: URL marker 
references on SVG elements
  https://commits.webkit.org/317199@main Introduce IsolatedSVGDocumentContext

Following tests are now fixed:

  svg/clip-path/clip-path-invalid-reference-002.svg
  svg/paint-servers/external-paint-server-css.html
  svg/paint-servers/external-paint-server-gradient.html
  svg/paint-servers/external-paint-server-pattern.html
  
imported/w3c/web-platform-tests/svg/painting/reftests/marker-external-reference.svg
  
imported/w3c/web-platform-tests/svg/painting/reftests/marker-data-uri-reference.svg
  
imported/w3c/web-platform-tests/svg/painting/reftests/pattern-external-reference.svg

* Source/WebCore/rendering/ReferencedSVGResources.cpp:
(WebCore::ReferencedSVGResources::referencedClipPathElement):
(WebCore::ReferencedSVGResources::referencedMarkerElement):
(WebCore::ReferencedSVGResources::referencedPaintServerElement):

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



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

Reply via email to