Index: Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp |
=================================================================== |
--- Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp (revision 108518) |
+++ Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp (working copy) |
@@ -79,12 +79,12 @@ |
bool SVGTextLayoutAttributesBuilder::buildLayoutAttributesIfNeeded(RenderSVGText* textRoot) |
{ |
ASSERT(textRoot); |
- if (!m_textPositions.isEmpty()) |
- return m_textLength; |
- m_textLength = 0; |
- const UChar* lastCharacter = 0; |
- collectTextPositioningElements(textRoot, lastCharacter); |
+ if (m_textPositions.isEmpty()) { |
+ m_textLength = 0; |
+ const UChar* lastCharacter = 0; |
+ collectTextPositioningElements(textRoot, lastCharacter); |
+ } |
m_characterDataMap.clear(); |
if (!m_textLength) |