Index: Source/core/html/HTMLVideoElement.cpp |
diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp |
index c01f9347821dec4bcdd8d76fee69272e193bdd03..5dacbacc390dee9573b52b3935ee2152861bd16b 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); |
} |
@@ -270,4 +273,9 @@ KURL HTMLVideoElement::posterImageURL() const |
return document().completeURL(url); |
} |
+KURL HTMLVideoElement::mediaPlayerPosterURL() |
+{ |
+ return posterImageURL(); |
+} |
+ |
} |