Index: third_party/WebKit/Source/web/TextFinder.cpp |
diff --git a/third_party/WebKit/Source/web/TextFinder.cpp b/third_party/WebKit/Source/web/TextFinder.cpp |
index 9f8410f7f220987c34ac39186a1a19191b113069..6bdd96dd0b088cc3f6b8dbb24ad90cbb2cea0e1c 100644 |
--- a/third_party/WebKit/Source/web/TextFinder.cpp |
+++ b/third_party/WebKit/Source/web/TextFinder.cpp |
@@ -379,7 +379,7 @@ void TextFinder::scopeStringMatches(int identifier, |
m_currentActiveMatchFrame = true; |
foundActiveMatch = true; |
// We also know which tickmark is active now. |
- m_activeMatchIndex = matchCount - 1; |
+ m_activeMatchIndex = m_totalMatchCount + matchCount - 1; |
// To stop looking for the active tickmark, we set this flag. |
m_locatingActiveRect = false; |