Summary: | Add experimental TextTrackCue API | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric Carlson <eric.carlson> | ||||||||||
Component: | Media | Assignee: | Eric Carlson <eric.carlson> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | benjamin, calvaris, cdumez, commit-queue, dbates, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, jer.noble, joepeck, kangil.han, kondapallykalyan, pdr, philipj, sergio, webkit-bug-importer, youennf | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | Other | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Attachments: |
|
Description
Eric Carlson
2019-10-30 17:37:44 PDT
Created attachment 382399 [details]
WIP
Created attachment 382402 [details]
WIP
Comment on attachment 382402 [details] WIP View in context: https://bugs.webkit.org/attachment.cgi?id=382402&action=review > Source/WebCore/Modules/mediacontrols/MediaControlsHost.cpp:180 > +void MediaControlsHost::updateCaptionDisplaySizes(bool forceUpdate) A parameter of “enum class ForceUpdate { Yes, No }” might be nice here > Source/WebCore/html/shadow/MediaControlElements.cpp:1193 > + for (size_t i = 0; i < activeCues.size(); ++i) { Can this be?: for (auto& cue : activeCues) > Source/WebCore/html/shadow/MediaControlElements.cpp:1199 > + RefPtr<TextTrackCueBox> displayBox = cue->getDisplayTree(m_videoDisplaySize.size(), m_fontSize); Auto? > Source/WebCore/html/shadow/MediaControlElements.cpp:1223 > + if (!region) { Or: if (auto region = ....) { ... } else { ... } Created attachment 382604 [details]
Patch
Created attachment 382624 [details]
Patch for landing
Comment on attachment 382624 [details] Patch for landing Clearing flags on attachment: 382624 Committed r251950: <https://trac.webkit.org/changeset/251950> All reviewed patches have been landed. Closing bug. |