Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: third_party/WebKit/Source/web/TextFinder.cpp

Issue 2548253005: FindInPage: fix wrong match ordinal after javascript update. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698