If HTMLMediaElement replaces the MediaPlayer after its display state has been set to "video", the new media engine has no way to know that it is allowed to display video.
If the display state is reset whenever MediaPlayer is replaced, the media engine will get the correct state when it is recalculated.
Created attachment 93140 [details]
Comment on attachment 93140 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=93140&action=review
> + // Reset display mode to force a recalculation of what to show becuase we are resetting the player.
This misspells because.
Revision r86245 cherry-picked into qtwebkit-2.2 with commit 3f5fab4 <http://gitorious.org/webkit/qtwebkit/commit/3f5fab4>