Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3f05dc5ec966a1f1d630d0b6130cc0cb988a5210
https://github.com/WebKit/WebKit/commit/3f05dc5ec966a1f1d630d0b6130cc0cb988a5210
Author: Sam Weinig <[email protected]>
Date: 2025-11-03 (Mon, 03 Nov 2025)
Changed paths:
M Source/WTF/wtf/CryptographicallyRandomNumber.cpp
M Source/WTF/wtf/IteratorRange.h
M Source/WTF/wtf/ListHashSet.h
M Source/WTF/wtf/URLHelpers.cpp
M Source/WebCore/accessibility/AXSearchManager.cpp
M Source/WebCore/accessibility/AccessibilityObject.cpp
M Source/WebCore/animation/DocumentTimeline.cpp
M Source/WebCore/dom/Document.cpp
M Source/WebCore/dom/DocumentFullscreen.cpp
M Source/WebCore/dom/Element.cpp
M Source/WebCore/editing/markup.cpp
M Source/WebCore/html/closewatcher/CloseWatcherManager.cpp
M Source/WebCore/layout/floats/FloatingContext.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLine.h
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
M
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp
M
Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp
M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
M Source/WebCore/loader/FrameLoader.cpp
M Source/WebCore/page/EventHandler.cpp
M Source/WebCore/page/PointerCaptureController.cpp
M Source/WebCore/page/scrolling/coordinated/ScrollingTreeCoordinated.cpp
M Source/WebCore/platform/graphics/FontCascade.cpp
M Source/WebCore/platform/graphics/TransparencyLayerContextSwitcher.cpp
M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
M Source/WebCore/platform/ios/wak/WKView.mm
M Source/WebCore/rendering/BackgroundPainter.cpp
M Source/WebCore/rendering/InlineBoxPainter.cpp
M Source/WebCore/rendering/LayerAncestorClippingStack.cpp
M Source/WebCore/rendering/RenderBlockFlow.cpp
M Source/WebCore/rendering/TextBoxPainter.cpp
M Source/WebCore/rendering/svg/SVGTextChunk.cpp
M Source/WebCore/style/AnchorPositionEvaluator.cpp
M Source/WebCore/style/ContainerQueryEvaluator.cpp
M Source/WebCore/style/StyleInvalidator.cpp
M Source/WebCore/style/StyleScopeRuleSets.cpp
M Source/WebCore/style/StyleTreeResolver.cpp
M Source/WebCore/style/Styleable.cpp
M Source/WebCore/style/values/backgrounds/StyleFillLayers.h
M Source/WebCore/style/values/borders/StyleBoxShadow.cpp
M Source/WebCore/style/values/borders/StyleShadowInterpolation.h
M Source/WebCore/style/values/text-decoration/StyleTextShadow.cpp
M Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeViews.mm
M Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp
M Tools/TestWebKitAPI/Tests/WTF/IteratorRange.cpp
Log Message:
-----------
[Modernization] Replace WTF::makeReversedRange with std::views::reverse
https://bugs.webkit.org/show_bug.cgi?id=301825
Reviewed by Darin Adler.
Replaces uses of `WTF::makeReversedRange` with `std::views::reverse`.
To allow `std::views::reverse` to work with `WTF::ListHashSet`, the
`WTF::ListHashSet` iterators needed to be updated to conform to the
`std::bidirectional_iterator` concept, which required adding postfix
decrement operators that had been previously omitted intentionally.
The goal of the intentional omission was to avoid accidental performance
issues when manually using iterators, but we mostly use try to avoid
direct iterator usage and being able to use std::ranges is a good tradeoff.
* Source/WTF/wtf/CryptographicallyRandomNumber.cpp:
* Source/WTF/wtf/IteratorRange.h:
* Source/WTF/wtf/ListHashSet.h:
* Source/WTF/wtf/URLHelpers.cpp:
* Source/WebCore/accessibility/AXSearchManager.cpp:
* Source/WebCore/accessibility/AccessibilityObject.cpp:
* Source/WebCore/animation/DocumentTimeline.cpp:
* Source/WebCore/dom/Document.cpp:
* Source/WebCore/dom/DocumentFullscreen.cpp:
* Source/WebCore/dom/Element.cpp:
* Source/WebCore/editing/markup.cpp:
* Source/WebCore/html/closewatcher/CloseWatcherManager.cpp:
* Source/WebCore/layout/floats/FloatingContext.cpp:
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp:
* Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp:
* Source/WebCore/layout/formattingContexts/inline/InlineLine.h:
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
*
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp:
*
Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp:
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
* Source/WebCore/loader/FrameLoader.cpp:
* Source/WebCore/page/EventHandler.cpp:
* Source/WebCore/page/PointerCaptureController.cpp:
* Source/WebCore/page/scrolling/coordinated/ScrollingTreeCoordinated.cpp:
* Source/WebCore/platform/graphics/FontCascade.cpp:
* Source/WebCore/platform/graphics/TransparencyLayerContextSwitcher.cpp:
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:
* Source/WebCore/platform/ios/wak/WKView.mm:
* Source/WebCore/rendering/LayerAncestorClippingStack.cpp:
* Source/WebCore/rendering/RenderBlockFlow.cpp:
* Source/WebCore/rendering/TextBoxPainter.cpp:
* Source/WebCore/rendering/svg/SVGTextChunk.cpp:
* Source/WebCore/style/AnchorPositionEvaluator.cpp:
* Source/WebCore/style/ContainerQueryEvaluator.cpp:
* Source/WebCore/style/StyleInvalidator.cpp:
* Source/WebCore/style/StyleScopeRuleSets.cpp:
* Source/WebCore/style/StyleTreeResolver.cpp:
* Source/WebCore/style/Styleable.cpp:
* Source/WebCore/style/values/backgrounds/StyleFillLayers.h:
* Source/WebCore/style/values/borders/StyleBoxShadow.cpp:
* Source/WebCore/style/values/borders/StyleShadowInterpolation.h:
* Source/WebCore/style/values/text-decoration/StyleTextShadow.cpp:
* Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeViews.mm:
* Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp:
* Tools/TestWebKitAPI/Tests/WTF/IteratorRange.cpp:
Canonical link: https://commits.webkit.org/302487@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications