[Track] Rendering crash
https://bugs.webkit.org/show_bug.cgi?id=106199

Reviewed by Eric Carlson.

Source/WebCore:

The browser is crashing if a text track is added through JavaScript,
due to the fact that the containing block is not marked as inline at
the time RenderTextTrackCue::layout() is called. The fix consists
of ensuring that the pseudo id is set, even if the track isn't
yet visible.

Test: media/track/track-cue-inline-assertion-crash.html

* html/track/TextTrackCue.cpp:
(WebCore::TextTrackCue::updateDisplayTree): The pseudo-id should
be set when the display tree is generated.
(WebCore::TextTrackCue::getDisplayTree): Added extra check to not
do unneccessary logic if the track will never be displayed.

LayoutTests:

* media/track/track-cue-inline-assertion-crash-expected.txt: Added.
* media/track/track-cue-inline-assertion-crash.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rebaselines after http://trac.webkit.org/changeset/138838.

* platform/chromium-mac-lion/fast/ruby/base-shorter-than-text-expected.txt:
* platform/chromium-mac-lion/fast/table/038-vertical-expected.png:
* platform/chromium-mac-lion/fast/table/border-collapsing/004-vertical-expected.png:
* platform/chromium-mac-snowleopard/fast/table/038-vertical-expected.png:
* platform/chromium-mac-snowleopard/fast/table/border-collapsing/004-vertical-expected.png:
* platform/chromium-mac/fast/ruby/base-shorter-than-text-expected.txt:
* platform/chromium-mac/fast/table/038-vertical-expected.png:
* platform/chromium-mac/fast/table/038-vertical-expected.txt: Copied from LayoutTests/platform/chromium/fast/table/038-vertical-expected.txt.
* platform/chromium-mac/fast/table/border-collapsing/004-vertical-expected.png:
* platform/chromium-mac/fast/table/border-collapsing/004-vertical-expected.txt:
* platform/chromium-win-xp/fast/ruby/base-shorter-than-text-expected.txt:
* platform/chromium-win-xp/fast/table/038-vertical-expected.png: Added.
* platform/chromium-win-xp/fast/table/border-collapsing/004-vertical-expected.png: Added.
* platform/chromium/TestExpectations:
* platform/gtk/TestExpectations:
* platform/gtk/fast/ruby/base-shorter-than-text-expected.txt:
* platform/gtk/fast/table/038-vertical-expected.txt:
* platform/gtk/fast/table/border-collapsing/004-vertical-expected.txt:
* platform/mac-lion/fast/table/038-vertical-expected.txt: Copied from LayoutTests/platform/chromium/fast/table/038-vertical-expected.txt.
* platform/mac-lion/fast/table/border-collapsing/004-vertical-expected.txt: Added.
* platform/mac-wk2/fast/table/038-vertical-expected.txt: Renamed from LayoutTests/platform/chromium/fast/table/038-vertical-expected.txt.
* platform/mac-wk2/fast/table/border-collapsing/004-vertical-expected.txt: Added.
* platform/mac/TestExpectations:
* platform/qt/TestExpectations:
* platform/qt/fast/table/038-vertical-expected.txt:
* platform/qt/fast/table/border-collapsing/004-vertical-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138967 268f45cc-cd09-0410-ab3c-d52691b4dbfc