RESOLVED FIXED 168716
Implement WebVTT VTTCue region attribute
https://bugs.webkit.org/show_bug.cgi?id=168716
Summary Implement WebVTT VTTCue region attribute
Attachments
Patch (48.62 KB, patch)
2020-12-11 13:58 PST, frankolivier
no flags
Patch (47.08 KB, patch)
2020-12-12 10:42 PST, frankolivier
no flags
Simon Pieters (:zcorpan)
Comment 1 2017-03-09 05:08:27 PST
I suppose it makes sense to update the WebVTT region-related API changes all at once; see https://github.com/w3c/web-platform-tests/pull/4997 In historical.html, tests that fail in Safari TP: VTTCue regionId member must be nuked TextTrack regions member must be nuked TextTrack addRegion member must be nuked TextTrack removeRegion member must be nuked VTTRegion track member must be nuked VTTRegion id member must be nuked (Note: VTTRegion id is very likely to be added back to the spec.) See also IDL tests added in https://github.com/w3c/web-platform-tests/pull/4992
Simon Pieters (:zcorpan)
Comment 2 2017-08-15 03:01:38 PDT
(In reply to Simon Pieters from comment #1) > VTTRegion id member must be nuked > > (Note: VTTRegion id is very likely to be added back to the spec.) id was re-introduced in https://github.com/w3c/webvtt/pull/349 test at https://github.com/w3c/web-platform-tests/pull/6885
Silvia Pfeiffer
Comment 3 2017-10-14 01:06:06 PDT
Also please note that there is a :cue-region and :cue-region(id) pseudo-class to implement https://github.com/w3c/webvtt/issues/355
Radar WebKit Bug Importer
Comment 4 2020-11-30 11:42:21 PST
frankolivier
Comment 5 2020-12-11 13:58:20 PST
Eric Carlson
Comment 6 2020-12-11 15:44:36 PST
Comment on attachment 416044 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416044&action=review > Source/WebCore/html/track/TextTrackCueGeneric.cpp:97 > + Nit: don't need this new whitespace > Source/WebCore/html/track/VTTCue.cpp:199 > + Ditto. > Source/WebCore/html/track/VTTCue.cpp:584 > + // return Exception { SyntaxError }; Did you mean to leave this commented out? > Source/WebCore/html/track/VTTCue.cpp:1063 > + if (m_region) { > + if (m_displayTree) > + m_region->willRemoveTextTrackCueBox(m_displayTree.get()); > } Nit: this could be simplified to `if (m_region && m_displayTree) ...` > Source/WebCore/html/track/VTTCue.h:210 > +// bool linePositionIsAuto() const; Should this be deleted? > Source/WebCore/rendering/RenderVTTCue.cpp:62 > + Nit: whitespace > Source/WebCore/rendering/RenderVTTCue.cpp:391 > + > + Nit: extra blank line
frankolivier
Comment 7 2020-12-12 10:42:05 PST
EWS
Comment 8 2020-12-12 11:40:18 PST
Committed r270738: <https://trac.webkit.org/changeset/270738> All reviewed patches have been landed. Closing bug and clearing flags on attachment 416099 [details].
Note You need to log in before you can comment on or make changes to this bug.