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

Unified Diff: Source/core/layout/LayoutListItem.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/LayoutInline.cpp ('k') | Source/core/layout/LayoutListMarker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutListItem.cpp
diff --git a/Source/core/layout/LayoutListItem.cpp b/Source/core/layout/LayoutListItem.cpp
index 762196177fef772192430f78bb992b0575a8d3fe..7cbec7f6a9bbbef23728c5dd88575e5fb5ea006c 100644
--- a/Source/core/layout/LayoutListItem.cpp
+++ b/Source/core/layout/LayoutListItem.cpp
@@ -129,10 +129,10 @@ static Node* enclosingList(const LayoutListItem* listItem)
}
// Returns the next list item with respect to the DOM order.
-static LayoutListItem* nextListItem(const Node* listNode, const LayoutListItem* item = 0)
+static LayoutListItem* nextListItem(const Node* listNode, const LayoutListItem* item = nullptr)
{
if (!listNode)
- return 0;
+ return nullptr;
const Node* current = item ? item->node() : listNode;
ASSERT(current);
@@ -154,7 +154,7 @@ static LayoutListItem* nextListItem(const Node* listNode, const LayoutListItem*
current = LayoutTreeBuilderTraversal::next(*current, listNode);
}
- return 0;
+ return nullptr;
}
// Returns the previous list item with respect to the DOM order.
@@ -178,7 +178,7 @@ static LayoutListItem* previousListItem(const Node* listNode, const LayoutListIt
if (otherList)
current = LayoutTreeBuilderTraversal::next(*otherList, listNode);
}
- return 0;
+ return nullptr;
}
void LayoutListItem::updateItemValuesForOrderedList(const HTMLOListElement* listNode)
@@ -237,7 +237,7 @@ static LayoutObject* getParentOfFirstLineBox(LayoutBlockFlow* curr, LayoutObject
{
LayoutObject* firstChild = curr->firstChild();
if (!firstChild)
- return 0;
+ return nullptr;
bool inQuirksMode = curr->document().inQuirksMode();
for (LayoutObject* currChild = firstChild; currChild; currChild = currChild->nextSibling()) {
@@ -262,7 +262,7 @@ static LayoutObject* getParentOfFirstLineBox(LayoutBlockFlow* curr, LayoutObject
return lineBox;
}
- return 0;
+ return nullptr;
}
void LayoutListItem::updateValue()
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutListMarker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698