Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cd777bb5eeec36aaf56789e8c414cebdcd3a7680
https://github.com/WebKit/WebKit/commit/cd777bb5eeec36aaf56789e8c414cebdcd3a7680
Author: lilly <[email protected]>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M Source/WebCore/platform/graphics/FloatPointGraph.cpp
M Source/WebCore/platform/graphics/GeometryUtilities.cpp
M Source/WebCore/platform/graphics/GeometryUtilities.h
M Source/WebCore/rendering/BorderPainter.cpp
M Source/WebKit/UIProcess/Inspector/ios/WKInspectorHighlightView.mm
M Source/WebKitLegacy/mac/WebInspector/WebNodeHighlightView.mm
Log Message:
-----------
Change findIntersection() to return an std::optional<FloatPoint>
https://bugs.webkit.org/show_bug.cgi?id=318733
rdar://181535881
Reviewed by Simon Fraser.
WebCore::findIntersection() (in GeometryUtilities) currently returns a bool and
writes the intersection point through a FloatPoint& out-parameter. The changes
now return std::optional<FloatPoint>
No behavior change intended
* Source/WebCore/platform/graphics/FloatPointGraph.cpp:
(WebCore::findLineSegmentIntersection):
* Source/WebCore/platform/graphics/GeometryUtilities.cpp:
(WebCore::findIntersection):
* Source/WebCore/platform/graphics/GeometryUtilities.h:
* Source/WebCore/rendering/BorderPainter.cpp:
(WebCore::BorderPainter::clipBorderSidePolygon const):
* Source/WebKit/UIProcess/Inspector/ios/WKInspectorHighlightView.mm:
(findIntersectionOnLineBetweenPoints):
* Source/WebKitLegacy/mac/WebInspector/WebNodeHighlightView.mm:
(findIntersectionOnLineBetweenPoints):
Canonical link: https://commits.webkit.org/316633@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications