diff options
Diffstat (limited to 'Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp')
-rw-r--r-- | Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp b/Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp index a27f68cd7..02a2123eb 100644 --- a/Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp +++ b/Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp @@ -79,12 +79,12 @@ void SVGTextLayoutAttributesBuilder::rebuildMetricsForWholeTree(RenderSVGText* t 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) |