Chromium Code Reviews| 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()); |