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

Unified Diff: Source/core/layout/BidiRunForLine.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/BidiRunForLine.h ('k') | Source/core/layout/ClipRectsCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/BidiRunForLine.cpp
diff --git a/Source/core/layout/BidiRunForLine.cpp b/Source/core/layout/BidiRunForLine.cpp
index 9260e6085fd779ee03f61362dea128414f9de504..e3bda139264be01dbde29fb35bff6ebdfa8be94e 100644
--- a/Source/core/layout/BidiRunForLine.cpp
+++ b/Source/core/layout/BidiRunForLine.cpp
@@ -34,14 +34,14 @@ namespace blink {
using namespace WTF::Unicode;
static LayoutObject* firstLayoutObjectForDirectionalityDetermination(
- LayoutObject* root, LayoutObject* current = 0)
+ LayoutObject* root, LayoutObject* current = nullptr)
{
LayoutObject* next = current;
while (current) {
if (isIsolated(current->style()->unicodeBidi())
&& (current->isLayoutInline() || current->isLayoutBlock())) {
if (current != root)
- current = 0;
+ current = nullptr;
else
current = next;
break;
@@ -53,7 +53,7 @@ static LayoutObject* firstLayoutObjectForDirectionalityDetermination(
current = root->slowFirstChild();
while (current) {
- next = 0;
+ next = nullptr;
if (isIteratorTarget(current) && !(current->isText()
&& toLayoutText(current)->isAllCollapsibleWhitespace()))
break;
« no previous file with comments | « Source/core/layout/BidiRunForLine.h ('k') | Source/core/layout/ClipRectsCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698