Index: Source/core/rendering/RenderTextFragment.cpp |
diff --git a/Source/core/rendering/RenderTextFragment.cpp b/Source/core/rendering/RenderTextFragment.cpp |
index 759eb9dd368c1bf6bf8bd3e89899afd2ab41b2c8..91d9546f390a306e868094daa106273467805694 100644 |
--- a/Source/core/rendering/RenderTextFragment.cpp |
+++ b/Source/core/rendering/RenderTextFragment.cpp |
@@ -30,7 +30,7 @@ |
namespace WebCore { |
RenderTextFragment::RenderTextFragment(Node* node, StringImpl* str, int startOffset, int length) |
- : RenderText(node, str ? str->substring(startOffset, length) : PassRefPtr<StringImpl>(0)) |
+ : RenderText(node, str ? str->substring(startOffset, length) : PassRefPtr<StringImpl>(nullptr)) |
, m_start(startOffset) |
, m_end(length) |
, m_firstLetter(0) |
@@ -64,7 +64,7 @@ PassRefPtr<StringImpl> RenderTextFragment::originalText() const |
Node* e = node(); |
RefPtr<StringImpl> result = ((e && e->isTextNode()) ? toText(e)->dataImpl() : contentString()); |
if (!result) |
- return 0; |
+ return nullptr; |
return result->substring(start(), end()); |
} |