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

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 1186853004: Move paint invalidation up into HTMLMediaElement::clearMediaPlayer(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 | « no previous file | Source/web/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 9c7af1a16bdfad0357843673946fb07f816dbd54..75567e2eeeacf0212f8ffb9f66e0fa59000bafbd 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -3062,6 +3062,9 @@ void HTMLMediaElement::clearMediaPlayer(int flags)
if (m_textTracks)
configureTextTrackDisplay(AssumeNoVisibleChange);
+
+ if (layoutObject())
+ layoutObject()->setShouldDoFullPaintInvalidation();
}
void HTMLMediaElement::stop()
« no previous file with comments | « no previous file | Source/web/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698