Reviewed by Anders.
[WebKit-https.git] / WebCore / editing / TextIterator.cpp
index 966ad2b4d25ea0daae415feea7d7b5cc6b11e089..cc97735cac4e1df522d9eef439f0ce832a47ff41 100644 (file)
@@ -678,7 +678,7 @@ bool SimplifiedBackwardsTextIterator::handleTextNode()
     m_lastTextNode = m_node;
 
     RenderText *renderer = static_cast<RenderText *>(m_node->renderer());
-    String str = m_node->nodeValue();
+    String str = renderer->string();
 
     if (!renderer->firstTextBox() && str.length() > 0)
         return true;