Index: Source/core/svg/SVGTextContentElement.cpp |
diff --git a/Source/core/svg/SVGTextContentElement.cpp b/Source/core/svg/SVGTextContentElement.cpp |
index f64cd8db200f7844ac85edbf260898db1eaf4e25..12fb0a1eca3d27b811d3d7890a34f8cc8ef9a49e 100644 |
--- a/Source/core/svg/SVGTextContentElement.cpp |
+++ b/Source/core/svg/SVGTextContentElement.cpp |
@@ -126,7 +126,7 @@ PassRefPtr<SVGPointTearOff> SVGTextContentElement::getStartPositionOfChar(unsign |
if (charnum > getNumberOfChars()) { |
exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("charnum", charnum, getNumberOfChars())); |
- return 0; |
+ return nullptr; |
} |
FloatPoint point = SVGTextQuery(renderer()).startPositionOfCharacter(charnum); |
@@ -139,7 +139,7 @@ PassRefPtr<SVGPointTearOff> SVGTextContentElement::getEndPositionOfChar(unsigned |
if (charnum > getNumberOfChars()) { |
exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("charnum", charnum, getNumberOfChars())); |
- return 0; |
+ return nullptr; |
} |
FloatPoint point = SVGTextQuery(renderer()).endPositionOfCharacter(charnum); |
@@ -152,7 +152,7 @@ PassRefPtr<SVGRectTearOff> SVGTextContentElement::getExtentOfChar(unsigned charn |
if (charnum > getNumberOfChars()) { |
exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("charnum", charnum, getNumberOfChars())); |
- return 0; |
+ return nullptr; |
} |
FloatRect rect = SVGTextQuery(renderer()).extentOfCharacter(charnum); |