Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: a9eaa105ceeeba11d107ab77e0c73b394bdd0a4c https://github.com/WebKit/WebKit/commit/a9eaa105ceeeba11d107ab77e0c73b394bdd0a4c Author: Chris Dumez <cdu...@apple.com> Date: 2023-10-10 (Tue, 10 Oct 2023)
Changed paths: M Source/WTF/wtf/Vector.h M Source/WTF/wtf/WeakHashSet.h M Source/WTF/wtf/WeakListHashSet.h M Source/WebCore/Modules/fetch/FetchHeaders.cpp M Source/WebCore/animation/CSSPropertyAnimation.cpp M Source/WebCore/contentextensions/ContentExtensionsBackend.cpp M Source/WebCore/css/CSSFontSelector.cpp M Source/WebCore/html/HTMLCollection.cpp M Source/WebCore/platform/SharedBuffer.cpp M Source/WebCore/platform/animation/AcceleratedEffectValues.cpp M Source/WebCore/platform/graphics/GraphicsLayer.h M Source/WebCore/platform/graphics/cg/GradientRendererCG.cpp M Source/WebCore/style/PageRuleCollector.cpp M Tools/TestWebKitAPI/Tests/WTF/Vector.cpp Log Message: ----------- Introduce Vector::appendContainerWithMapping(container, mapFunction) https://bugs.webkit.org/show_bug.cgi?id=262935 Reviewed by Timothy Hatcher. Introduce Vector::appendContainerWithMapping(container, mapFunction) and adopt throughout the code base to reduce further the use of Vector::uncheckedAppend(). This is similar to WTF::map() but can be used on an already constructor vector, potentially containing items already. * Source/WTF/wtf/Vector.h: (WTF::containerSize): (WTF::Malloc>::appendContainerWithMapping): (WTF::Mapper::map): * Source/WTF/wtf/WeakHashSet.h: (WTF::containerSize): (WTF:: const): Deleted. * Source/WTF/wtf/WeakListHashSet.h: (WTF::containerSize): * Source/WebCore/Modules/fetch/FetchHeaders.cpp: (WebCore::FetchHeaders::Iterator::next): * Source/WebCore/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * Source/WebCore/contentextensions/ContentExtensionsBackend.cpp: (WebCore::ContentExtensions::ContentExtensionsBackend::actionsFromContentRuleList const): * Source/WebCore/css/CSSFontSelector.cpp: (WebCore::m_version): * Source/WebCore/html/HTMLCollection.cpp: (WebCore::HTMLCollection::namedItems const): * Source/WebCore/platform/SharedBuffer.cpp: (WebCore::FragmentedSharedBuffer::append): * Source/WebCore/platform/animation/AcceleratedEffectValues.cpp: (WebCore::AcceleratedEffectValues::AcceleratedEffectValues): * Source/WebCore/platform/graphics/GraphicsLayer.h: (WebCore::TransformAnimationValue::TransformAnimationValue): (WebCore::FilterAnimationValue::FilterAnimationValue): * Source/WebCore/platform/graphics/cg/GradientRendererCG.cpp: (WebCore::GradientRendererCG::makeShading const): * Source/WebCore/style/PageRuleCollector.cpp: (WebCore::Style::PageRuleCollector::matchPageRules): * Tools/TestWebKitAPI/Tests/WTF/Vector.cpp: (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/269155@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes