Index: Source/core/editing/TextIterator.cpp |
diff --git a/Source/core/editing/TextIterator.cpp b/Source/core/editing/TextIterator.cpp |
index 7da300e6a2755fbe064ad31749186f66087d90cd..0b8b8072c3aef799a763dba4b89c9a439822b206 100644 |
--- a/Source/core/editing/TextIterator.cpp |
+++ b/Source/core/editing/TextIterator.cpp |
@@ -402,11 +402,11 @@ void TextIterator::advance() |
if (renderer->isText() && m_node->nodeType() == Node::TEXT_NODE) { // FIXME: What about CDATA_SECTION_NODE? |
handledNode = handleTextNode(); |
} else if (renderer && (renderer->isImage() || renderer->isWidget() |
- || (renderer->node() && renderer->node()->isElementNode() |
- && (toElement(renderer->node())->isFormControlElement() |
- || toElement(renderer->node())->hasTagName(legendTag) |
- || toElement(renderer->node())->hasTagName(meterTag) |
- || toElement(renderer->node())->hasTagName(progressTag))))) { |
+ || (m_node && m_node->isElementNode() |
+ && (toElement(m_node)->isFormControlElement() |
+ || toElement(m_node)->hasTagName(legendTag) |
+ || toElement(m_node)->hasTagName(meterTag) |
+ || toElement(m_node)->hasTagName(progressTag))))) { |
handledNode = handleReplacedElement(); |
} else { |
handledNode = handleNonTextNode(); |