-
mitz@apple.com authored
Reviewed by Sam Weinig. WebKit part of <rdar://problem/8145955> Add text search API for counting/marking/highlighting matches in a range https://bugs.webkit.org/show_bug.cgi?id=50530 * WebView/WebDocumentInternal.h: Added a DOMRange parameter to -countMatchesForText:options:limit:markMatches: * WebView/WebHTMLView.mm: (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]): Added DOMRange parameter, which is passed through to WebCore. * WebView/WebPDFView.mm: (isFrameInRange): Added this helper function. (-[WebPDFView countMatchesForText:inDOMRange:options:limit:markMatches:]): Added DOMRange parameter and a check if the frame is in the range. * WebView/WebView.mm: (-[WebView countMatchesForText:options:highlight:limit:markMatches:]): Now calls the inDOMRange: version. (-[WebView countMatchesForText:inDOMRange:options:highlight:limit:markMatches:]): Added DOMRange parameter, which is passed to document views' -countMatchesForText:inDOMRange:options:limit:markMatches:. * WebView/WebViewPrivate.h: 2010-12-04 Dan Bernstein <mitz@apple.com> Reviewed by Sam Weinig. WebCore part of <rdar://problem/8145955> Add text search API for counting/marking/highlighting matches in a range https://bugs.webkit.org/show_bug.cgi?id=50530 * WebCore.exp.in: Export Range version of countMatchesForText(). * editing/Editor.cpp: (WebCore::isFrameInRange): Added this helper method. (WebCore::Editor::countMatchesForText): Added a Range parameter and restricted the result to matches that occur in the range. * editing/Editor.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1506e874