Index: Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp |
=================================================================== |
--- Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp (revision 139386) |
+++ Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp (working copy) |
@@ -578,21 +578,10 @@ |
y += m_dy; |
} |
- // Determine wheter we have to start a new fragment. |
- bool shouldStartNewFragment = false; |
+ // Determine whether we have to start a new fragment. |
+ bool shouldStartNewFragment = m_dx || m_dy || m_isVerticalText || m_inPathLayout || angle || angle != lastAngle |
+ || orientationAngle || kerning || applySpacingToNextCharacter || definesTextLength; |
- if (m_dx || m_dy) |
- shouldStartNewFragment = true; |
- |
- if (!shouldStartNewFragment && (m_isVerticalText || m_inPathLayout)) |
- shouldStartNewFragment = true; |
- |
- if (!shouldStartNewFragment && (angle || angle != lastAngle || orientationAngle)) |
- shouldStartNewFragment = true; |
- |
- if (!shouldStartNewFragment && (kerning || applySpacingToNextCharacter || definesTextLength)) |
- shouldStartNewFragment = true; |
- |
// If we already started a fragment, close it now. |
if (didStartTextFragment && shouldStartNewFragment) { |
applySpacingToNextCharacter = false; |