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

Unified Diff: Source/core/html/HTMLTextFormControlElement.cpp

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/html/HTMLTableRowElement.cpp ('k') | Source/core/html/ImageData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTextFormControlElement.cpp
diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp
index a8ef2bf4cea0c99082dcfc1031c2c64647730498..1c9462bffb1e32854e43b550fbe479f4d6ada330 100644
--- a/Source/core/html/HTMLTextFormControlElement.cpp
+++ b/Source/core/html/HTMLTextFormControlElement.cpp
@@ -422,7 +422,7 @@ static inline void setContainerAndOffsetForRange(Node* node, int offset, Node*&
PassRefPtr<Range> HTMLTextFormControlElement::selection() const
{
if (!renderer() || !isTextFormControl() || !hasCachedSelection())
- return 0;
+ return nullptr;
int start = m_cachedSelectionStart;
int end = m_cachedSelectionEnd;
@@ -430,7 +430,7 @@ PassRefPtr<Range> HTMLTextFormControlElement::selection() const
ASSERT(start <= end);
HTMLElement* innerText = innerTextElement();
if (!innerText)
- return 0;
+ return nullptr;
if (!innerText->firstChild())
return Range::create(document(), innerText, 0, innerText, 0);
@@ -455,7 +455,7 @@ PassRefPtr<Range> HTMLTextFormControlElement::selection() const
}
if (!startNode || !endNode)
- return 0;
+ return nullptr;
return Range::create(document(), startNode, start, endNode, end);
}
« no previous file with comments | « Source/core/html/HTMLTableRowElement.cpp ('k') | Source/core/html/ImageData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698