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

Unified Diff: Source/core/fetch/ImageResource.cpp

Issue 22900016: x (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/core/platform/SharedBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ImageResource.cpp
diff --git a/Source/core/fetch/ImageResource.cpp b/Source/core/fetch/ImageResource.cpp
index f7d808a42f63c784362fb3f32b51f388adb91609..0fbc4072a7619ea9010813ba9c72c59deb7d63a9 100644
--- a/Source/core/fetch/ImageResource.cpp
+++ b/Source/core/fetch/ImageResource.cpp
@@ -77,6 +77,7 @@ void ImageResource::didAddClient(ResourceClient* c)
{
if (m_data && !m_image && !errorOccurred()) {
createImage();
+ m_data->setDebug(url().string());
m_image->setData(m_data, true);
}
@@ -331,6 +332,8 @@ void ImageResource::updateImage(bool allDataReceived)
// Have the image update its data from its internal buffer.
// It will not do anything now, but will delay decoding until
// queried for info (like size or specific image frames).
+ if (m_data)
+ m_data->setDebug(url().string());
if (m_image)
sizeAvailable = m_image->setData(m_data, allDataReceived);
« no previous file with comments | « no previous file | Source/core/platform/SharedBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698