Index: Source/WebCore/rendering/RenderBlockLineLayout.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlockLineLayout.cpp (revision 136279) |
+++ Source/WebCore/rendering/RenderBlockLineLayout.cpp (working copy) |
@@ -2627,7 +2627,7 @@ |
wordMeasurement.startOffset = lastSpace; |
float additionalTmpW; |
- if (wordTrailingSpaceWidth && currentCharacterIsSpace) |
+ if (wordTrailingSpaceWidth && c == ' ') |
additionalTmpW = textWidth(t, lastSpace, current.m_pos + 1 - lastSpace, f, width.currentWidth(), isFixedPitch, collapseWhiteSpace, &wordMeasurement.fallbackFonts, textLayout) - wordTrailingSpaceWidth; |
else |
additionalTmpW = textWidth(t, lastSpace, current.m_pos - lastSpace, f, width.currentWidth(), isFixedPitch, collapseWhiteSpace, &wordMeasurement.fallbackFonts, textLayout); |