Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1414)

Unified Diff: Source/web/WebMediaPlayerClientImpl.cpp

Issue 1180073014: Invalidate video elements when starting up media players and changing DisplayMode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/LayoutVideo.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebMediaPlayerClientImpl.cpp
diff --git a/Source/web/WebMediaPlayerClientImpl.cpp b/Source/web/WebMediaPlayerClientImpl.cpp
index d57802add60b16b2ddb4770a1ff086f4acc4eb47..28840ec7ddf0984aeec7a962841e1946e611df50 100644
--- a/Source/web/WebMediaPlayerClientImpl.cpp
+++ b/Source/web/WebMediaPlayerClientImpl.cpp
@@ -59,6 +59,9 @@ WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl()
{
// Explicitly destroy the WebMediaPlayer to allow verification of tear down.
m_webMediaPlayer.clear();
+
+ if (mediaElement().layoutObject())
sof 2015/06/18 14:02:49 Is this a safe thing to do? And is it needed? Web
chrishtr 2015/06/18 14:37:09 clearMediaPlayerAndAudioSourceProviderClientWithou
+ mediaElement().layoutObject()->setShouldDoFullPaintInvalidation();
}
void WebMediaPlayerClientImpl::networkStateChanged()
@@ -202,6 +205,9 @@ void WebMediaPlayerClientImpl::load(WebMediaPlayer::LoadType loadType, const WTF
if (!m_webMediaPlayer)
return;
+ if (mediaElement().layoutObject())
+ mediaElement().layoutObject()->setShouldDoFullPaintInvalidation();
+
#if ENABLE(WEB_AUDIO)
// Make sure if we create/re-create the WebMediaPlayer that we update our wrapper.
m_audioSourceProvider.wrap(m_webMediaPlayer->audioSourceProvider());
« no previous file with comments | « Source/core/layout/LayoutVideo.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698