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

Unified Diff: Source/core/layout/LayoutVideo.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 | « no previous file | Source/web/WebMediaPlayerClientImpl.cpp » ('j') | Source/web/WebMediaPlayerClientImpl.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutVideo.cpp
diff --git a/Source/core/layout/LayoutVideo.cpp b/Source/core/layout/LayoutVideo.cpp
index 409a9b97a842c3416d70f4722b396b55fbb92b13..85d2caa574f58ff732e200d320932b67d8fe021f 100644
--- a/Source/core/layout/LayoutVideo.cpp
+++ b/Source/core/layout/LayoutVideo.cpp
@@ -164,6 +164,9 @@ void LayoutVideo::updateFromElement()
{
LayoutMedia::updateFromElement();
updatePlayer();
+
+ // If the DisplayMode of the video changed, then we need to paint.
+ setShouldDoFullPaintInvalidation();
}
void LayoutVideo::updatePlayer()
« no previous file with comments | « no previous file | Source/web/WebMediaPlayerClientImpl.cpp » ('j') | Source/web/WebMediaPlayerClientImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698