Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c3bd9e5938014614a49f828c9972c8fc83fbfb54
https://github.com/WebKit/WebKit/commit/c3bd9e5938014614a49f828c9972c8fc83fbfb54
Author: Anne van Kesteren <[email protected]>
Date: 2026-01-08 (Thu, 08 Jan 2026)
Changed paths:
M Source/WebCore/Modules/mediasource/MediaSource.cpp
M Source/WebCore/html/HTMLMediaElement.cpp
M Source/WebCore/html/HTMLMediaElement.h
M Source/WebCore/html/track/AudioTrackList.cpp
M Source/WebCore/html/track/AudioTrackList.h
M Source/WebCore/html/track/AudioTrackList.idl
M Source/WebCore/html/track/VideoTrackList.cpp
M Source/WebCore/html/track/VideoTrackList.h
M Source/WebCore/html/track/VideoTrackList.idl
M Source/WebCore/page/CaptionUserPreferences.cpp
M Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp
Log Message:
-----------
Give AudioTrackList and VideoTrackList a reference item() method
https://bugs.webkit.org/show_bug.cgi?id=305112
Reviewed by Chris Dumez.
A follow-up to 305268@main to improve code clarity further. Internal
code already performs bounds checking before calling item() so item()
does not need a branch (Vector access has a release assert).
Unfortunately this logic cannot be used for TextTrackList::item as
TextTrackList has a more complicated data structure for which this
would be less worthwhile.
Canonical link: https://commits.webkit.org/305342@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications