addTextTrack should set track mode to HIDDEN
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jun 2012 03:21:55 +0000 (03:21 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jun 2012 03:21:55 +0000 (03:21 +0000)
commitdb55930e0677c3c06ccf780e002a8861070f7305
treea6c9ac6fd2cdd0b37436486d4149ae5b24b2e0b7
parent55963f2434e6ab08f016564ae244f6858498072f
addTextTrack should set track mode to HIDDEN
https://bugs.webkit.org/show_bug.cgi?id=88317

Patch by Victor Carbune <victor@rosedu.org> on 2012-06-07
Reviewed by Eric Carlson.

Source/WebCore:

Updated existing test.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::addTextTrack): Set the default parameters
for the newly created TextTrack.
* html/track/TextTrack.cpp:
(WebCore::TextTrack::TextTrack):

LayoutTests:

* media/track/track-texttracks-expected.txt: Updated.
* media/track/track-texttracks.html: Updated.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@119792 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/track/track-texttracks-expected.txt
LayoutTests/media/track/track-texttracks.html
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLMediaElement.cpp
Source/WebCore/html/track/TextTrack.cpp