Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e3aa940b07c165276a0e1f416ff92c45387da303
      
https://github.com/WebKit/WebKit/commit/e3aa940b07c165276a0e1f416ff92c45387da303
  Author: Said Abou-Hallawa <s...@apple.com>
  Date:   2025-08-28 (Thu, 28 Aug 2025)

  Changed paths:
    A LayoutTests/svg/custom/path-seg-nan-coordinates-linecap-crash-expected.txt
    A LayoutTests/svg/custom/path-seg-nan-coordinates-linecap-crash.html
    M Source/WebCore/rendering/svg/legacy/LegacyRenderSVGPath.cpp

  Log Message:
  -----------
  REGRESSION(269745@main): Inserting a PathSeg with NaN coordinates into a 
<path> element can result in NaN StrokeBoundingBox
https://bugs.webkit.org/show_bug.cgi?id=297730
rdar://157533330

Reviewed by Simon Fraser.

A pathSeg with NaN cooridatnes and Linecap should not make the StrokeBoundingBox
of an SVGPathElement a NaN FloatRect.

* LayoutTests/svg/custom/path-seg-nan-coordinates-linecap-crash-expected.txt: 
Added.
* LayoutTests/svg/custom/path-seg-nan-coordinates-linecap-crash.html: Added.
* Source/WebCore/rendering/svg/legacy/LegacyRenderSVGPath.cpp:
(WebCore::LegacyRenderSVGPath::adjustStrokeBoundingBoxForMarkersAndZeroLengthLinecaps
 const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to