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

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

Issue 1314793010: Support fragment URLs for all kinds of SVG images (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update DEPS to match 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
Index: Source/core/html/HTMLVideoElement.cpp
diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp
index e64a10fd0aa63fa70bd7c1a0daedc0f29a5d553a..54e3b123ca538de770aa1a065073eeb3c3cdc42f 100644
--- a/Source/core/html/HTMLVideoElement.cpp
+++ b/Source/core/html/HTMLVideoElement.cpp
@@ -91,7 +91,7 @@ void HTMLVideoElement::attach(const AttachContext& context)
m_imageLoader = HTMLImageLoader::create(this);
m_imageLoader->updateFromElement();
if (layoutObject())
- toLayoutImage(layoutObject())->imageResource()->setImageResource(m_imageLoader->image());
+ toLayoutImage(layoutObject())->imageResource()->setImageResource(m_imageLoader->image(), document().completeURL(posterImageURL()));
}
}
@@ -128,7 +128,7 @@ void HTMLVideoElement::parseAttribute(const QualifiedName& name, const AtomicStr
m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousError);
} else {
if (layoutObject())
- toLayoutImage(layoutObject())->imageResource()->setImageResource(0);
+ toLayoutImage(layoutObject())->imageResource()->setImageResource(0, KURL());
}
// Notify the player when the poster image URL changes.
if (webMediaPlayer())

Powered by Google App Engine
This is Rietveld 408576698