| 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);
|
| }
|
|
|