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

Unified Diff: Source/core/layout/LayoutImage.cpp

Issue 1162383003: C++11: Replace 0 with nullptr where applicable in layout code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add one more file. Created 5 years, 6 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/layout/LayoutImage.h ('k') | Source/core/layout/LayoutImageResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutImage.cpp
diff --git a/Source/core/layout/LayoutImage.cpp b/Source/core/layout/LayoutImage.cpp
index 35b2b8d36c93c29c5a8e1995da9b1e2b67dedd13..05a43fc90ee44152db9e7c0d7b64d6c2fb36c78c 100644
--- a/Source/core/layout/LayoutImage.cpp
+++ b/Source/core/layout/LayoutImage.cpp
@@ -62,7 +62,7 @@ LayoutImage::LayoutImage(Element* element)
LayoutImage* LayoutImage::createAnonymous(Document* document)
{
- LayoutImage* image = new LayoutImage(0);
+ LayoutImage* image = new LayoutImage(nullptr);
image->setDocumentForAnonymous(document);
return image;
}
@@ -350,13 +350,13 @@ bool LayoutImage::needsPreferredWidthsRecalculation() const
LayoutBox* LayoutImage::embeddedContentBox() const
{
if (!m_imageResource)
- return 0;
+ return nullptr;
ImageResource* cachedImage = m_imageResource->cachedImage();
if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage())
return toSVGImage(cachedImage->image())->embeddedContentBox();
- return 0;
+ return nullptr;
}
} // namespace blink
« no previous file with comments | « Source/core/layout/LayoutImage.h ('k') | Source/core/layout/LayoutImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698