| Index: third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp b/third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp
|
| index aca2e19f769bf77b34e33ec2ca1ad17c165a2784..ab4458f0dc234bb7563f13cafa2c8b1711cd1f9a 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp
|
| @@ -113,8 +113,9 @@ float SVGTextContentElement::getSubStringLength(
|
| unsigned numberOfChars = getNumberOfChars();
|
| if (charnum >= numberOfChars) {
|
| exceptionState.throwDOMException(
|
| - IndexSizeError, ExceptionMessages::indexExceedsMaximumBound(
|
| - "charnum", charnum, getNumberOfChars()));
|
| + IndexSizeError,
|
| + ExceptionMessages::indexExceedsMaximumBound("charnum", charnum,
|
| + getNumberOfChars()));
|
| return 0.0f;
|
| }
|
|
|
| @@ -131,8 +132,9 @@ SVGPointTearOff* SVGTextContentElement::getStartPositionOfChar(
|
|
|
| if (charnum >= getNumberOfChars()) {
|
| exceptionState.throwDOMException(
|
| - IndexSizeError, ExceptionMessages::indexExceedsMaximumBound(
|
| - "charnum", charnum, getNumberOfChars()));
|
| + IndexSizeError,
|
| + ExceptionMessages::indexExceedsMaximumBound("charnum", charnum,
|
| + getNumberOfChars()));
|
| return nullptr;
|
| }
|
|
|
| @@ -149,8 +151,9 @@ SVGPointTearOff* SVGTextContentElement::getEndPositionOfChar(
|
|
|
| if (charnum >= getNumberOfChars()) {
|
| exceptionState.throwDOMException(
|
| - IndexSizeError, ExceptionMessages::indexExceedsMaximumBound(
|
| - "charnum", charnum, getNumberOfChars()));
|
| + IndexSizeError,
|
| + ExceptionMessages::indexExceedsMaximumBound("charnum", charnum,
|
| + getNumberOfChars()));
|
| return nullptr;
|
| }
|
|
|
| @@ -167,8 +170,9 @@ SVGRectTearOff* SVGTextContentElement::getExtentOfChar(
|
|
|
| if (charnum >= getNumberOfChars()) {
|
| exceptionState.throwDOMException(
|
| - IndexSizeError, ExceptionMessages::indexExceedsMaximumBound(
|
| - "charnum", charnum, getNumberOfChars()));
|
| + IndexSizeError,
|
| + ExceptionMessages::indexExceedsMaximumBound("charnum", charnum,
|
| + getNumberOfChars()));
|
| return nullptr;
|
| }
|
|
|
| @@ -182,8 +186,9 @@ float SVGTextContentElement::getRotationOfChar(unsigned charnum,
|
|
|
| if (charnum >= getNumberOfChars()) {
|
| exceptionState.throwDOMException(
|
| - IndexSizeError, ExceptionMessages::indexExceedsMaximumBound(
|
| - "charnum", charnum, getNumberOfChars()));
|
| + IndexSizeError,
|
| + ExceptionMessages::indexExceedsMaximumBound("charnum", charnum,
|
| + getNumberOfChars()));
|
| return 0.0f;
|
| }
|
|
|
| @@ -204,8 +209,9 @@ void SVGTextContentElement::selectSubString(unsigned charnum,
|
| unsigned numberOfChars = getNumberOfChars();
|
| if (charnum >= numberOfChars) {
|
| exceptionState.throwDOMException(
|
| - IndexSizeError, ExceptionMessages::indexExceedsMaximumBound(
|
| - "charnum", charnum, getNumberOfChars()));
|
| + IndexSizeError,
|
| + ExceptionMessages::indexExceedsMaximumBound("charnum", charnum,
|
| + getNumberOfChars()));
|
| return;
|
| }
|
|
|
|
|