Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 68273ed84537c3de713bae06fdfc10a55557f181
https://github.com/WebKit/WebKit/commit/68273ed84537c3de713bae06fdfc10a55557f181
Author: Taher Ali <[email protected]>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M Source/WebCore/rendering/svg/legacy/LegacyRenderSVGPath.cpp
Log Message:
-----------
Hoist loop-invariant strokeWidth out of
LegacyRenderSVGPath::shapeDependentStrokeContains
https://bugs.webkit.org/show_bug.cgi?id=318997
rdar://181848321
Reviewed by Simon Fraser.
The per-iteration loop recomputed strokeWidth() and the cap-style check,
both are loop-invariant. We hoist these invariants above the loop and switch to
a
range-based for-loop.
No behavior change.
* Source/WebCore/rendering/svg/legacy/LegacyRenderSVGPath.cpp:
(WebCore::LegacyRenderSVGPath::shapeDependentStrokeContains):
Canonical link: https://commits.webkit.org/317202@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications