Index: Source/core/editing/TextIterator.cpp |
diff --git a/Source/core/editing/TextIterator.cpp b/Source/core/editing/TextIterator.cpp |
index 964fee013391ee93af760b1c02e5355e041a1314..7db31b7f24e72724a41e984a6872f3e5007ffae5 100644 |
--- a/Source/core/editing/TextIterator.cpp |
+++ b/Source/core/editing/TextIterator.cpp |
@@ -668,7 +668,7 @@ void TextIterator::handleTextBox() |
InlineTextBox* firstTextBox = renderer->containsReversedText() ? (m_sortedTextBoxes.isEmpty() ? 0 : m_sortedTextBoxes[0]) : renderer->firstTextBox(); |
bool needSpace = m_lastTextNodeEndedWithCollapsedSpace |
|| (m_textBox == firstTextBox && textBoxStart == runStart && runStart > 0); |
- if (needSpace && !isCollapsibleWhitespace(m_lastCharacter) && m_lastCharacter) { |
+ if (needSpace && !renderer->style()->isCollapsibleWhiteSpace(m_lastCharacter) && m_lastCharacter) { |
if (m_lastTextNode == m_node && runStart > 0 && str[runStart - 1] == ' ') { |
unsigned spaceRunStart = runStart - 1; |
while (spaceRunStart > 0 && str[spaceRunStart - 1] == ' ') |