Index: third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp |
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp |
index 9706da369f11217d1d64e4f72c82fbaf39c008b0..3688dde7c1d952dfdd182ba5a18e16b7d2875745 100644 |
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp |
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp |
@@ -1105,6 +1105,13 @@ bool TextIteratorAlgorithm<Strategy>::isInTextSecurityMode() const |
return isTextSecurityNode(node()); |
} |
+template <typename Strategy> |
+bool TextIteratorAlgorithm<Strategy>::isBetweenSurrogatePair(int position) const |
+{ |
+ ASSERT(position >= 0); |
+ return position > 0 && position < length() && U16_IS_LEAD(characterAt(position - 1)) && U16_IS_TRAIL(characterAt(position)); |
+} |
+ |
// -------- |
template <typename Strategy> |