Bug 1065827 - Invalidate video frame container during FirstFrameLoaded. r=jwwang
☠☠ backed out by cf5b6e0872c3 ☠ ☠
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 06 Nov 2014 20:56:56 +1100
changeset 214381 a6540a77d6f72004c2a3262b70c6f6a03f0d3929
parent 214380 c0087ef95dc0c9a86f5cf10936e9a9dae7e3da1d
child 214382 006c4625df019c61b63b49a24a7b2fad22b1456e
push id27780
push userkwierso@gmail.com
push dateFri, 07 Nov 2014 02:25:05 +0000
treeherdermozilla-central@e6d47abb6a7b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwwang
bugs1065827
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1065827 - Invalidate video frame container during FirstFrameLoaded. r=jwwang
dom/media/MediaDecoder.cpp
--- a/dom/media/MediaDecoder.cpp
+++ b/dom/media/MediaDecoder.cpp
@@ -736,16 +736,17 @@ void MediaDecoder::FirstFrameLoaded(Medi
 
   if (mPlayState == PLAY_STATE_LOADING && mIsDormant && !mIsExitingDormant) {
     return;
   }
 
   mInfo = aInfo;
 
   if (mOwner) {
+    Invalidate();
     mOwner->FirstFrameLoaded();
   }
 
   // This can run cache callbacks.
   mResource->EnsureCacheUpToDate();
 
   // The element can run javascript via events
   // before reaching here, so only change the