gecko-dev/dom/media/webvtt
Alastor Wu ea20eb6bb5 Bug 1488673 - part5 : find the best position for the cue box in order not to overlap it with other cue boxes. r=heycam
According to the spec 7.2.10 [1], the step13 to step21 (snap-to-line is true) and the step3 to step5 (snap-to-line is false), we need to find the best position where the cue box has least overlap with other cue boxes.

In addition, in order not to be affected by CSS transformation, use non-tranformed attribute in `BoxPosition`.

[1]
https://w3c.github.io/webvtt/#ref-for-webvtt-cue-snap-to-lines-flag-12
https://w3c.github.io/webvtt/#ref-for-webvtt-cue-snap-to-lines-flag-13

Differential Revision: https://phabricator.services.mozilla.com/D22578

--HG--
extra : moz-landing-system : lando
2019-03-14 07:22:33 +00:00
..
tests Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
components.conf Bug 1524688: Part 52 - Convert WebVTT components to static registration. r=heycam 2019-01-30 11:31:25 -08:00
moz.build Bug 1524688: Part 52 - Convert WebVTT components to static registration. r=heycam 2019-01-30 11:31:25 -08:00
nsIWebVTTListener.idl
nsIWebVTTParserWrapper.idl
package.json
update-webvtt.js
vtt.jsm Bug 1488673 - part5 : find the best position for the cue box in order not to overlap it with other cue boxes. r=heycam 2019-03-14 07:22:33 +00:00
WebVTTParserWrapper.jsm Bug 1524688: Part 52 - Convert WebVTT components to static registration. r=heycam 2019-01-30 11:31:25 -08:00