Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 333674335eb2131051a2685a4ca87ef4ce318950
https://github.com/WebKit/WebKit/commit/333674335eb2131051a2685a4ca87ef4ce318950
Author: Ahmad Saleem <[email protected]>
Date: 2026-04-05 (Sun, 05 Apr 2026)
Changed paths:
M Source/WebCore/rendering/LayerAncestorClippingStack.cpp
M Source/WebCore/rendering/RenderGeometryMap.cpp
M Source/WebCore/rendering/RenderLayer.cpp
M Source/WebCore/rendering/RenderText.cpp
Log Message:
-----------
Use size_t or auto and std::views::reverse to fix 64-bit truncation in
rendering loops
https://bugs.webkit.org/show_bug.cgi?id=311499
rdar://174093705
Reviewed by Alan Baradlay.
Replace int loop counters with auto to avoid implicit 64-bit
truncation from size() return values. Use std::views::reverse for
reverse iteration where the index is not needed for control flow.
* Source/WebCore/rendering/LayerAncestorClippingStack.cpp:
(WebCore::LayerAncestorClippingStack::updateWithClipData):
* Source/WebCore/rendering/RenderGeometryMap.cpp:
(WebCore::RenderGeometryMap::mapToContainer const):
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::RenderLayer::hitTestContentsForFragments const):
(WebCore::RenderLayer::hitTestTransformedLayerInFragments):
* Source/WebCore/rendering/RenderText.cpp:
(WebCore::RenderText::lastCharacterIndexStrippingSpaces const):
Canonical link: https://commits.webkit.org/310598@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications