Index: Source/core/editing/TextIterator.cpp |
diff --git a/Source/core/editing/TextIterator.cpp b/Source/core/editing/TextIterator.cpp |
index 45a5f213b3a52a91642d61b585c07bc17b29ca7a..a3069b3bec5203fa5c2aedc57b0791250d4fe3da 100644 |
--- a/Source/core/editing/TextIterator.cpp |
+++ b/Source/core/editing/TextIterator.cpp |
@@ -356,6 +356,15 @@ TextIterator::~TextIterator() |
{ |
} |
+bool TextIterator::isInsideReplacedElement() const |
+{ |
+ if (atEnd() || length() != 1 || !m_node) |
+ return false; |
+ |
+ RenderObject* renderer = m_node->renderer(); |
+ return renderer && renderer->isReplaced(); |
+} |
+ |
void TextIterator::advance() |
{ |
if (m_shouldStop) |