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

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

Issue 131763011: Expose the poster image URL to WebMediaPlayer subclasses (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address Aaron's comments Created 6 years, 10 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
Index: Source/core/html/HTMLVideoElement.cpp
diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp
index d49c28f4b93dd078de595d5ce15cf912b385a5ed..d8e4d8cb7348b427423ac66c3cf23daf7531fb2a 100644
--- a/Source/core/html/HTMLVideoElement.cpp
+++ b/Source/core/html/HTMLVideoElement.cpp
@@ -113,6 +113,9 @@ void HTMLVideoElement::parseAttribute(const QualifiedName& name, const AtomicStr
if (renderer())
toRenderImage(renderer())->imageResource()->setImageResource(0);
}
+ // Notify the player when the poster image URL changes.
+ if (player())
+ player()->setPoster(posterImageURL());
} else
HTMLMediaElement::parseAttribute(name, value);
}
« no previous file with comments | « no previous file | Source/platform/graphics/media/MediaPlayer.h » ('j') | Source/web/WebMediaPlayerClientImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698