Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/ImageDocument.cpp |
| diff --git a/third_party/WebKit/Source/core/html/ImageDocument.cpp b/third_party/WebKit/Source/core/html/ImageDocument.cpp |
| index 3776a2b571c4f70c532c55ca6c46c393b46e1b11..6a16b3077c5baefe5169745dd9695c29ec9df216 100644 |
| --- a/third_party/WebKit/Source/core/html/ImageDocument.cpp |
| +++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp |
| @@ -156,8 +156,10 @@ void ImageDocumentParser::finish() |
| { |
| if (!isStopped() && document()->imageElement() && document()->cachedImage()) { |
| ImageResource* cachedImage = document()->cachedImage(); |
| + DocumentLoader* loader = document()->loader(); |
| + cachedImage->setResponse(loader->response()); |
|
rune
2015/10/04 18:02:57
Moved setResponse() before finish() because that's
|
| + cachedImage->setLoadFinishTime(loader->timing().responseEnd()); |
| cachedImage->finish(); |
| - cachedImage->setResponse(document()->frame()->loader().documentLoader()->response()); |
| // Report the natural image size in the page title, regardless of zoom level. |
| // At a zoom level of 1 the image is guaranteed to have an integer size. |