[giow] (1) <track> loading algorithm updates (part 1)
Affected topics: Video Text Tracks, Video and Audio

git-svn-id: http://svn.whatwg.org/webapps@7326 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit bd2c336a3e46b1605420ff4b3d108e9bc0b90b76)

Fixes W3C bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18190
[giow] (1) Reform the processing model around loading of text tracks to solve a number of problems: what happens when there's no media element parent, how to make sure we pick the right text track when there's a user preference, and some race conditions
Affected topics: HTML, Rendering, Video Text Tracks, Video and Audio

git-svn-id: http://svn.whatwg.org/webapps@7327 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit 5b4828f900da5193744e62c52eb9c05bb91a99bf)

Cleanup of handling of "default" attribute on text tracks.
(Ignore the top bits - they are only effective in the WHATWG spec.)
[giow] (1) Make text track cues more forgiving: drop the concept of cues being 'associated' with something, and make .snapToLines and .line allow invalid values and just have those be ignored in the rendering.
Affected topics: Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7328 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit 7352c04220a79f127892f59636532b38dfcf53ba)

Fixes W3C bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18182
[giow] (1) Avoid firing enter/exit events on cues that have just been introduced, e.g. when a track is enabled, since that's just crazy.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17235
Affected topics: Video and Audio

git-svn-id: http://svn.whatwg.org/webapps@7329 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit 8dbaab7e7e15799872856f3b4a1416fee1090dbd)

Fixes W3C bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18208
[giow] (1) Change TextTrackCue.line to expose the raw value rather than the computed value. There's no way to get the computed value now.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=16915
Affected topics: Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7330 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit eb386e6fe2decb90e31b23fc0461c1b13d9d6bd0)

Fixes W3C bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18169
[e] (0) Fix an example to use the new API.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=16076
Affected topics: Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7331 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit 5305a028c4ac34b9883234076df9de5779335cdb)

Fixes W3C commit: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18222
[giow] (1) Use the entry script's document instead of the media element's, since there's not necessarily a media element.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=16884
Affected topics: Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7332 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit 14616f01f67a0d3c4f4101f1ab3e28a60d8502ba)

Fixes W3C bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18179
[giow] (0) Fix the handling of default='' in automatic text track selection
Affected topics: Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7338 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit 884bf98853dd499551c487e752872e71b6332387)
[giow] (0) Fix the order of cues to handle dynamic changes better.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17319
Affected topics: Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7339 340c8d12-0b0e-0410-8428-c7bf67bfef74
(cherry picked from commit 70b2ffc206e6024e85be0051b334ee4fcd4e7048)

Fixed W3C bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18217
Merge branch 'feature/whatwg_track'