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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceContainer.h

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
Index: Source/core/layout/svg/LayoutSVGResourceContainer.h
diff --git a/Source/core/layout/svg/LayoutSVGResourceContainer.h b/Source/core/layout/svg/LayoutSVGResourceContainer.h
index f03d9417f4ef86e318d8999f29b56d9751356e60..b0f7d7dd37fe65b1d31a7b03d5f3e6126bd10fbe 100644
--- a/Source/core/layout/svg/LayoutSVGResourceContainer.h
+++ b/Source/core/layout/svg/LayoutSVGResourceContainer.h
@@ -64,7 +64,7 @@ public:
void addClientLayer(DeprecatedPaintLayer*);
void removeClientLayer(DeprecatedPaintLayer*);
- void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = 0);
+ void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = nullptr);
static void markForLayoutAndParentResourceInvalidation(LayoutObject*, bool needsLayout = true);
@@ -110,12 +110,12 @@ private:
inline LayoutSVGResourceContainer* getLayoutSVGResourceContainerById(TreeScope& treeScope, const AtomicString& id)
{
if (id.isEmpty())
- return 0;
+ return nullptr;
if (LayoutSVGResourceContainer* layoutResource = treeScope.document().accessSVGExtensions().resourceById(id))
return layoutResource;
- return 0;
+ return nullptr;
}
template<typename Layout>
@@ -125,7 +125,7 @@ Layout* getLayoutSVGResourceById(TreeScope& treeScope, const AtomicString& id)
if (container->resourceType() == Layout::s_resourceType)
return static_cast<Layout*>(container);
}
- return 0;
+ return nullptr;
}
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceContainer, isSVGResourceContainer());
« no previous file with comments | « Source/core/layout/svg/LayoutSVGModelObject.h ('k') | Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698