[webkit-changes] [WebKit/WebKit] 4a0b13: Use Vector::uncheckedAppend() less in WebCore

Chris Dumez noreply at github.com
Fri Oct 6 18:54:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4a0b13037eb2952053f57e5895df92d48aea5439
      https://github.com/WebKit/WebKit/commit/4a0b13037eb2952053f57e5895df92d48aea5439
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

  Changed paths:
    M Source/WebCore/platform/network/HTTPHeaderMap.h
    M Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp
    M Source/WebCore/platform/network/cocoa/CookieCocoa.mm
    M Source/WebCore/platform/network/cocoa/NetworkStorageSessionCocoa.mm
    M Source/WebCore/platform/text/LocaleICU.cpp
    M Source/WebCore/platform/text/LocaleNone.cpp
    M Source/WebCore/platform/text/cocoa/LocaleCocoa.mm
    M Source/WebCore/rendering/RenderText.cpp
    M Source/WebCore/rendering/style/StyleImageSet.cpp
    M Source/WebCore/rendering/svg/SVGRenderSupport.cpp
    M Source/WebCore/storage/Storage.cpp
    M Source/WebCore/style/ClassChangeInvalidation.cpp
    M Source/WebCore/style/RuleSetBuilder.cpp
    M Source/WebCore/style/StyleBuilderConverter.h
    M Source/WebCore/style/StyleBuilderCustom.h
    M Source/WebCore/style/StyleResolveForFontRaw.cpp
    M Source/WebCore/style/StyleScopeRuleSets.cpp
    M Source/WebCore/svg/SVGFEColorMatrixElement.cpp
    M Source/WebCore/testing/ServiceWorkerInternals.cpp
    M Source/WebCore/workers/service/background-fetch/BackgroundFetch.cpp
    M Source/WebCore/workers/service/background-fetch/BackgroundFetchEngine.cpp
    M Source/WebCore/xml/XMLHttpRequest.cpp

  Log Message:
  -----------
  Use Vector::uncheckedAppend() less in WebCore
https://bugs.webkit.org/show_bug.cgi?id=262761

Reviewed by Darin Adler.

Use Vector::uncheckedAppend() less in WebCore and replace with faster alternatives
now that uncheckedAppend() has become an alias for append().

* Source/WebCore/platform/network/HTTPHeaderMap.h:
* Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp:
(WebCore::formCreate):
* Source/WebCore/platform/network/cocoa/CookieCocoa.mm:
(WebCore::portVectorFromList):
* Source/WebCore/platform/network/cocoa/NetworkStorageSessionCocoa.mm:
(WebCore::NetworkStorageSession::getRawCookies const):
* Source/WebCore/platform/text/LocaleICU.cpp:
(WebCore::createFallbackMonthLabels):
* Source/WebCore/platform/text/LocaleNone.cpp:
(WebCore::LocaleNone::monthLabels):
(WebCore::LocaleNone::shortMonthLabels):
* Source/WebCore/platform/text/cocoa/LocaleCocoa.mm:
(WebCore::LocaleCocoa::monthLabels):
(WebCore::LocaleCocoa::shortMonthLabels):
(WebCore::LocaleCocoa::timeAMPMLabels):
* Source/WebCore/rendering/RenderText.cpp:
(WebCore::characterRects):
* Source/WebCore/rendering/style/StyleImageSet.cpp:
(WebCore::StyleImageSet::computedStyleValue const):
* Source/WebCore/rendering/svg/SVGRenderSupport.cpp:
(WebCore::SVGRenderSupport::applyStrokeStyleToContext):
* Source/WebCore/storage/Storage.cpp:
(WebCore::Storage::supportedPropertyNames const):
* Source/WebCore/style/ClassChangeInvalidation.cpp:
(WebCore::Style::collectClasses):
* Source/WebCore/style/RuleSetBuilder.cpp:
(WebCore::Style::RuleSetBuilder::updateCascadeLayerPriorities):
(WebCore::Style::RuleSetBuilder::MediaQueryCollector::pop):
* Source/WebCore/style/StyleBuilderConverter.h:
(WebCore::Style::BuilderConverter::convertGridTrackSizeList):
(WebCore::Style::BuilderConverter::convertSVGLengthVector):
* Source/WebCore/style/StyleBuilderCustom.h:
(WebCore::Style::BuilderCustom::applyValueFontFamily):
* Source/WebCore/style/StyleResolveForFontRaw.cpp:
(WebCore::Style::resolveForFontRaw):
* Source/WebCore/style/StyleScopeRuleSets.cpp:
(WebCore::Style::ensureInvalidationRuleSets):
* Source/WebCore/svg/SVGFEColorMatrixElement.cpp:
(WebCore::SVGFEColorMatrixElement::createFilterEffect const):
* Source/WebCore/testing/ServiceWorkerInternals.cpp:
(WebCore::ServiceWorkerInternals::fetchResponseHeaderList):
* Source/WebCore/workers/service/background-fetch/BackgroundFetch.cpp:
* Source/WebCore/workers/service/background-fetch/BackgroundFetchEngine.cpp:
(WebCore::BackgroundFetchEngine::backgroundFetchIdentifiers):
(WebCore::BackgroundFetchEngine::matchBackgroundFetch):
* Source/WebCore/xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::getAllResponseHeaders const):

Canonical link: https://commits.webkit.org/269027@main




More information about the webkit-changes mailing list