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

Unified Diff: Source/core/layout/LayoutFlexibleBox.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/LayoutFieldset.cpp ('k') | Source/core/layout/LayoutFlowThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutFlexibleBox.cpp
diff --git a/Source/core/layout/LayoutFlexibleBox.cpp b/Source/core/layout/LayoutFlexibleBox.cpp
index 4cd52482e4855b432b337fe82e33f50fd036f8fc..af55d88773248b99ee902f3a0fadfa30d70daf44 100644
--- a/Source/core/layout/LayoutFlexibleBox.cpp
+++ b/Source/core/layout/LayoutFlexibleBox.cpp
@@ -84,7 +84,7 @@ LayoutFlexibleBox::~LayoutFlexibleBox()
LayoutFlexibleBox* LayoutFlexibleBox::createAnonymous(Document* document)
{
- LayoutFlexibleBox* layoutObject = new LayoutFlexibleBox(0);
+ LayoutFlexibleBox* layoutObject = new LayoutFlexibleBox(nullptr);
layoutObject->setDocumentForAnonymous(document);
return layoutObject;
}
@@ -156,7 +156,7 @@ int LayoutFlexibleBox::firstLineBoxBaseline() const
{
if (isWritingModeRoot() || m_numberOfInFlowChildrenOnFirstLine <= 0)
return -1;
- LayoutBox* baselineChild = 0;
+ LayoutBox* baselineChild = nullptr;
int childNumber = 0;
for (LayoutBox* child = m_orderIterator.first(); child; child = m_orderIterator.next()) {
if (child->isOutOfFlowPositioned())
« no previous file with comments | « Source/core/layout/LayoutFieldset.cpp ('k') | Source/core/layout/LayoutFlowThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698