Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d47ec7b52d86dd2cf411943f382cab0ba1f72d2d
      
https://github.com/WebKit/WebKit/commit/d47ec7b52d86dd2cf411943f382cab0ba1f72d2d
  Author: Fady Farag <[email protected]>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M Source/WebCore/Modules/identity/DigitalCredentialsRequestDataBuilder.cpp
    M Source/WebCore/Modules/webcodecs/WebCodecsAudioEncoder.cpp
    M Source/WebCore/animation/WebAnimation.cpp
    M Source/WebCore/editing/CachedMatchFinder.cpp
    M Source/WebCore/editing/FrameSelection.cpp
    M Source/WebCore/page/InteractionRegion.cpp
    M Source/WebCore/page/Navigation.cpp
    M Source/WebCore/platform/AbortableTaskQueue.h

  Log Message:
  -----------
  Remove unnecessary `std::optional` initialization in WebCore
https://bugs.webkit.org/show_bug.cgi?id=316739
rdar://179180921

Reviewed by Chris Dumez.

ISO C++ Standard explicitly guarantees that a default-initialized std::optional
does not contain a value. So, initializing one with std::nullopt is redundant.

* Source/WebCore/Modules/identity/DigitalCredentialsRequestDataBuilder.cpp:
(WebCore::DigitalCredentialsRequestDataBuilder::build):
* Source/WebCore/Modules/webcodecs/WebCodecsAudioEncoder.cpp:
(WebCore::createAudioEncoderConfig):
* Source/WebCore/animation/WebAnimation.cpp:
(WebCore::WebAnimation::setEffectiveFrameRate):
* Source/WebCore/editing/CachedMatchFinder.cpp:
(WebCore::CachedMatchFinder::bufferOffsetForBoundaryPoint):
* Source/WebCore/editing/FrameSelection.cpp:
(WebCore::createCaretAnimator):
* Source/WebCore/page/InteractionRegion.cpp:
(WebCore::interactionRegionForRenderedRegion):
* Source/WebCore/page/Navigation.cpp:
(WebCore::Navigation::recursivelyDisposeOfForwardEntriesInParents):
* Source/WebCore/platform/AbortableTaskQueue.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to