Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 91bf4045be338d5e67dd6dc30835720564d0c5ad
      
https://github.com/WebKit/WebKit/commit/91bf4045be338d5e67dd6dc30835720564d0c5ad
  Author: Dana Estra <[email protected]>
  Date:   2026-07-01 (Wed, 01 Jul 2026)

  Changed paths:
    M Source/WebCore/Configurations/AllowedSPI.toml
    M Source/WebCore/PAL/pal/cf/CoreMediaSoftLink.cpp
    M Source/WebCore/PAL/pal/cf/CoreMediaSoftLink.h
    M Source/WebCore/html/track/InbandGenericTextTrack.cpp
    M Source/WebCore/html/track/TextTrackCueGeneric.cpp
    M Source/WebCore/html/track/TextTrackCueGeneric.h
    M Source/WebCore/html/track/VTTCue.cpp
    M Source/WebCore/html/track/VTTCue.h
    M Source/WebCore/platform/graphics/InbandGenericCue.cpp
    M Source/WebCore/platform/graphics/InbandGenericCue.h
    M 
Source/WebCore/platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp
    M Source/WebKit/Shared/WebCoreArgumentCodersMedia.serialization.in

  Log Message:
  -----------
  Generated transcriptions on Safari HLS Videos are not line breaking
https://bugs.webkit.org/show_bug.cgi?id=318277
rdar://172678303

Reviewed by Jer Noble.

Auto-generated subtitles use the 708 caption code path, which is always
non-wrapping. This patch adopts new Core Media SPI
kCMTextMarkupAttribute_PreventLineWrapping. When the attribute's value is
true, we continue setting text-wrap:nowrap on the vtt cue. When the attribute's
value is false, we set text-wrap:wrap.

No new tests.

* Source/WebCore/Configurations/AllowedSPI.toml:
* Source/WebCore/PAL/pal/cf/CoreMediaSoftLink.cpp:
* Source/WebCore/PAL/pal/cf/CoreMediaSoftLink.h:
* Source/WebCore/html/track/InbandGenericTextTrack.cpp:
(WebCore::InbandGenericTextTrack::updateCueFromCueData):
* Source/WebCore/html/track/TextTrackCueGeneric.cpp:
(WebCore::TextTrackCueGeneric::cueContentsMatch const):
(WebCore::TextTrackCueGeneric::toJSON const):
* Source/WebCore/html/track/TextTrackCueGeneric.h:
* Source/WebCore/html/track/VTTCue.cpp:
(WebCore::VTTCueBox::applyCSSProperties):
* Source/WebCore/html/track/VTTCue.h:
(WebCore::VTTCue::wrapTextDuringPercentageBasedPositioning const):
* Source/WebCore/platform/graphics/InbandGenericCue.cpp:
(WebCore::InbandGenericCue::toJSONString const):
(WebCore::GenericCueData::equalNotConsideringTimesOrId const):
* Source/WebCore/platform/graphics/InbandGenericCue.h:
(WebCore::GenericCueData::GenericCueData):
(WebCore::InbandGenericCue::preventLineWrapping const):
(WebCore::InbandGenericCue::setPreventLineWrapping):
* Source/WebCore/platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp:
(WebCore::InbandTextTrackPrivateAVF::processCueAttributes):
* Source/WebKit/Shared/WebCoreArgumentCodersMedia.serialization.in:

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



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

Reply via email to