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

Unified Diff: Source/core/layout/line/InlineTextBox.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
« no previous file with comments | « Source/core/layout/line/InlineIterator.h ('k') | Source/core/layout/line/LayoutTextInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/line/InlineTextBox.h
diff --git a/Source/core/layout/line/InlineTextBox.h b/Source/core/layout/line/InlineTextBox.h
index 7eb96619ae1d7bc4ae677cb0edd5b79113689eec..286220afbc123dbf98293fb226b481de2a17d286 100644
--- a/Source/core/layout/line/InlineTextBox.h
+++ b/Source/core/layout/line/InlineTextBox.h
@@ -40,8 +40,8 @@ class InlineTextBox : public InlineBox {
public:
InlineTextBox(LayoutObject& obj, int start, unsigned short length)
: InlineBox(obj)
- , m_prevTextBox(0)
- , m_nextTextBox(0)
+ , m_prevTextBox(nullptr)
+ , m_nextTextBox(nullptr)
, m_start(start)
, m_len(length)
, m_truncation(cNoTruncation)
@@ -87,8 +87,8 @@ public:
LayoutUnit logicalBottomVisualOverflow() const { return logicalOverflowRect().maxY(); }
// charactersWithHyphen, if provided, must not be destroyed before the TextRun.
- TextRun constructTextRun(const ComputedStyle&, const Font&, StringBuilder* charactersWithHyphen = 0) const;
- TextRun constructTextRun(const ComputedStyle&, const Font&, StringView, int maximumLength, StringBuilder* charactersWithHyphen = 0) const;
+ TextRun constructTextRun(const ComputedStyle&, const Font&, StringBuilder* charactersWithHyphen = nullptr) const;
+ TextRun constructTextRun(const ComputedStyle&, const Font&, StringView, int maximumLength, StringBuilder* charactersWithHyphen = nullptr) const;
#ifndef NDEBUG
virtual void showBox(int = 0) const override;
« no previous file with comments | « Source/core/layout/line/InlineIterator.h ('k') | Source/core/layout/line/LayoutTextInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698