Index: third_party/WebKit/Source/web/TextFinder.h |
diff --git a/third_party/WebKit/Source/web/TextFinder.h b/third_party/WebKit/Source/web/TextFinder.h |
index e639c9716c52990d0ec0050511e41d9dd9a33fbe..4d4dcb4f86fc8a4648d5b46a27117b36012263b8 100644 |
--- a/third_party/WebKit/Source/web/TextFinder.h |
+++ b/third_party/WebKit/Source/web/TextFinder.h |
@@ -56,7 +56,7 @@ public: |
bool find( |
int identifier, const WebString& searchText, const WebFindOptions&, |
- bool wrapWithinFrame, WebRect* selectionRect); |
+ bool wrapWithinFrame, WebRect* selectionRect, bool* activeNow = nullptr); |
void stopFindingAndClearSelection(); |
void scopeStringMatches( |
int identifier, const WebString& searchText, const WebFindOptions&, |
@@ -156,8 +156,9 @@ private: |
// Add a WebKit TextMatch-highlight marker to nodes in a range. |
void addMarker(Range*, bool activeMatch); |
- // Sets the markers within a range as active or inactive. |
- void setMarkerActive(Range*, bool active); |
+ // Sets the markers within a range as active or inactive. Returns true if at least |
+ // one such marker found. |
+ bool setMarkerActive(Range*, bool active); |
// Removes all markers. |
void unmarkAllTextMatches(); |