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

Unified Diff: Source/web/WebFrameImpl.cpp

Issue 26654011: Fixing TestRunner::findString() so as to fix findString.html editing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing default initializations Created 7 years, 2 months 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
« no previous file with comments | « Source/testing/runner/TestRunner.cpp ('k') | public/web/WebFindOptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFrameImpl.cpp
diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
index d1665c44f9dc79cdbb7b26f541b960f10c21c172..dbbe55971ec3d6d595a5e84cab7c621923a3fb15 100644
--- a/Source/web/WebFrameImpl.cpp
+++ b/Source/web/WebFrameImpl.cpp
@@ -1485,7 +1485,9 @@ bool WebFrameImpl::find(int identifier, const WebString& searchText, const WebFi
const FindOptions findOptions = (options.forward ? 0 : Backwards)
| (options.matchCase ? 0 : CaseInsensitive)
| (wrapWithinFrame ? WrapAround : 0)
- | (!options.findNext ? StartInSelection : 0);
+ | (options.wordStart ? AtWordStarts : 0)
+ | (options.medialCapitalAsWordStart ? TreatMedialCapitalAsWordStart : 0)
+ | (options.findNext ? 0 : StartInSelection);
m_activeMatch = frame()->editor().findStringAndScrollToVisible(searchText, m_activeMatch.get(), findOptions);
if (!m_activeMatch) {
« no previous file with comments | « Source/testing/runner/TestRunner.cpp ('k') | public/web/WebFindOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698