Chromium Code Reviews| 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 3bef0a99e12212414bf51b313653feaebd2f8df5..53237c6df2f09765bf1d99a2f1b455572ce395b9 100644 |
| --- a/third_party/WebKit/Source/web/TextFinder.cpp |
| +++ b/third_party/WebKit/Source/web/TextFinder.cpp |
| @@ -306,6 +306,12 @@ void TextFinder::scopeStringMatchesAlgorithm(int identifier, const WebString& se |
| // find an alternative. |
| EphemeralRangeTemplate<Strategy> result = findPlainText(EphemeralRangeTemplate<Strategy>(searchStart, searchEnd), searchText, options.matchCase ? 0 : CaseInsensitive); |
| if (result.isCollapsed()) { |
| + // result will be collapsed if whitespace spans over multiple TreeScopes. |
| + // FIXME: Show such matches to users. |
|
yosin_UTC9
2016/01/05 08:30:40
Please use "TODO(email):" style.
https://google.gi
ramya.v
2016/01/06 08:28:44
Done.
|
| + if (result.endPosition() != searchEnd) { |
| + searchStart = result.endPosition(); |
| + continue; |
| + } |
| // Not found. |
| break; |
| } |