| Index: Source/core/svg/SVGTextContentElement.cpp
|
| diff --git a/Source/core/svg/SVGTextContentElement.cpp b/Source/core/svg/SVGTextContentElement.cpp
|
| index a0ffd03c43dcfaf1a1881264cf2049c3f574ace5..620345e4b5a679e018110c1028bc20210b19d65b 100644
|
| --- a/Source/core/svg/SVGTextContentElement.cpp
|
| +++ b/Source/core/svg/SVGTextContentElement.cpp
|
| @@ -134,16 +134,17 @@ SVGPoint SVGTextContentElement::getEndPositionOfChar(unsigned charnum, Exception
|
| return SVGTextQuery(renderer()).endPositionOfCharacter(charnum);
|
| }
|
|
|
| -SVGRect SVGTextContentElement::getExtentOfChar(unsigned charnum, ExceptionState& exceptionState)
|
| +PassRefPtr<SVGRectTearOff> SVGTextContentElement::getExtentOfChar(unsigned charnum, ExceptionState& exceptionState)
|
| {
|
| document().updateLayoutIgnorePendingStylesheets();
|
|
|
| if (charnum > getNumberOfChars()) {
|
| exceptionState.throwUninformativeAndGenericDOMException(IndexSizeError);
|
| - return SVGRect();
|
| + return 0;
|
| }
|
|
|
| - return SVGTextQuery(renderer()).extentOfCharacter(charnum);
|
| + FloatRect rect = SVGTextQuery(renderer()).extentOfCharacter(charnum);
|
| + return SVGRectTearOff::create(SVGRect::create(rect), 0, PropertyIsNotAnimVal);
|
| }
|
|
|
| float SVGTextContentElement::getRotationOfChar(unsigned charnum, ExceptionState& exceptionState)
|
|
|