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

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

Issue 665613002: Move /fetch to use C++11 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 2 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/fetch/ImageResource.h ('k') | Source/core/fetch/Resource.cpp » ('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 50cd59cac2317e7bbc2989aabf9cffee1f9fad9e..647bb66d398f4638363447a08ec5236bfbcdef95 100644
--- a/Source/core/fetch/ImageResource.cpp
+++ b/Source/core/fetch/ImageResource.cpp
@@ -120,7 +120,7 @@ void ImageResource::switchClientsToRevalidatedResource()
ASSERT(resourceToRevalidate()->isImage());
// Pending container size requests need to be transferred to the revalidated resource.
if (!m_pendingContainerSizeRequests.isEmpty()) {
- // A copy of pending size requests is needed as they are deleted during Resource::switchClientsToRevalidateResouce().
+ // A copy of pending size requests is needed as they are deleted during Resource::switchClientsToRevalidateResource().
ContainerSizeRequests switchContainerSizeRequests;
for (const auto& containerSizeRequest : m_pendingContainerSizeRequests)
switchContainerSizeRequests.set(containerSizeRequest.key, containerSizeRequest.value);
@@ -341,7 +341,7 @@ inline void ImageResource::clearImage()
// If our Image has an observer, it's always us so we need to clear the back pointer
// before dropping our reference.
if (m_image)
- m_image->setImageObserver(0);
+ m_image->setImageObserver(nullptr);
m_image.clear();
}
@@ -387,7 +387,7 @@ void ImageResource::updateImage(bool allDataReceived)
void ImageResource::updateBitmapImages(HashSet<ImageResource*>& images, bool redecodeImages)
{
- for (const auto& imageResource : images) {
+ for (ImageResource* imageResource : images) {
if (!imageResource->hasImage() || imageResource->image()->isNull())
continue;
BitmapImage* image = toBitmapImage(imageResource->image());
« no previous file with comments | « Source/core/fetch/ImageResource.h ('k') | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698