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

Unified Diff: Source/core/dom/RangeBoundaryPoint.h

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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/dom/Range.cpp ('k') | Source/core/dom/ScriptedAnimationController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/RangeBoundaryPoint.h
diff --git a/Source/core/dom/RangeBoundaryPoint.h b/Source/core/dom/RangeBoundaryPoint.h
index 7574a89ef481ebaf3d52bfe58f646f5066f7f7d0..3218aa6d33b2d5b1ee5fd51f5d4dd5c810b850ac 100644
--- a/Source/core/dom/RangeBoundaryPoint.h
+++ b/Source/core/dom/RangeBoundaryPoint.h
@@ -67,7 +67,7 @@ private:
inline RangeBoundaryPoint::RangeBoundaryPoint(PassRefPtr<Node> container)
: m_containerNode(container)
, m_offsetInContainer(0)
- , m_childBeforeBoundary(0)
+ , m_childBeforeBoundary(nullptr)
{
ASSERT(m_containerNode);
}
@@ -114,7 +114,7 @@ inline void RangeBoundaryPoint::clear()
{
m_containerNode.clear();
m_offsetInContainer = 0;
- m_childBeforeBoundary = 0;
+ m_childBeforeBoundary = nullptr;
}
inline void RangeBoundaryPoint::set(PassRefPtr<Node> container, int offset, Node* childBefore)
@@ -149,7 +149,7 @@ inline void RangeBoundaryPoint::setToStartOfNode(PassRefPtr<Node> container)
ASSERT(container);
m_containerNode = container;
m_offsetInContainer = 0;
- m_childBeforeBoundary = 0;
+ m_childBeforeBoundary = nullptr;
}
inline void RangeBoundaryPoint::setToEndOfNode(PassRefPtr<Node> container)
@@ -158,7 +158,7 @@ inline void RangeBoundaryPoint::setToEndOfNode(PassRefPtr<Node> container)
m_containerNode = container;
if (m_containerNode->offsetInCharacters()) {
m_offsetInContainer = m_containerNode->maxCharacterOffset();
- m_childBeforeBoundary = 0;
+ m_childBeforeBoundary = nullptr;
} else {
m_childBeforeBoundary = m_containerNode->lastChild();
m_offsetInContainer = m_childBeforeBoundary ? invalidOffset : 0;
« no previous file with comments | « Source/core/dom/Range.cpp ('k') | Source/core/dom/ScriptedAnimationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698