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

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

Issue 1374793005: Single image reload fix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/html/forms/ImageInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLVideoElement.cpp
diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp
index e64a10fd0aa63fa70bd7c1a0daedc0f29a5d553a..2512e4ec57a89df9edb7a6d504078e3039053079 100644
--- a/Source/core/html/HTMLVideoElement.cpp
+++ b/Source/core/html/HTMLVideoElement.cpp
@@ -89,7 +89,7 @@ void HTMLVideoElement::attach(const AttachContext& context)
if (shouldDisplayPosterImage()) {
if (!m_imageLoader)
m_imageLoader = HTMLImageLoader::create(this);
- m_imageLoader->updateFromElement();
+ m_imageLoader->updateFromElement(0);
if (layoutObject())
toLayoutImage(layoutObject())->imageResource()->setImageResource(m_imageLoader->image());
}
@@ -125,7 +125,7 @@ void HTMLVideoElement::parseAttribute(const QualifiedName& name, const AtomicStr
if (!posterImageURL().isEmpty()) {
if (!m_imageLoader)
m_imageLoader = HTMLImageLoader::create(this);
- m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousError);
+ m_imageLoader->updateFromElement(0, ImageLoader::UpdateIgnorePreviousError);
} else {
if (layoutObject())
toLayoutImage(layoutObject())->imageResource()->setImageResource(0);
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/html/forms/ImageInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698