[WK2] FindController should not assume that ports do not want to highlight text matches
authorsergio@webkit.org <sergio@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jan 2012 08:54:19 +0000 (08:54 +0000)
committersergio@webkit.org <sergio@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jan 2012 08:54:19 +0000 (08:54 +0000)
commitfd4fbfec9ec7cefc32ab37b460792fabd86a0b88
tree207fce4331dc4a836ad708e220d6c1e006af6e28
parent7536355334328e333b6d739d708b63a7d3562105
[WK2] FindController should not assume that ports do not want to highlight text matches
https://bugs.webkit.org/show_bug.cgi?id=76921

Reviewed by Darin Adler.

FindController must obey the FindOptionsShowHighlight flag instead
of assuming that ports do not want to highlight search matches.

* Shared/API/c/WKFindOptions.h: added kWKFindOptionsShowHighlight.
* Shared/API/c/WKSharedAPICast.h:
(WebKit::toFindOptions): Ditto.
* Shared/WebFindOptions.h: added FindOptionsShowHighlight.
* WebProcess/WebPage/FindController.cpp:
(WebKit::FindController::findString):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105855 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/API/c/WKFindOptions.h
Source/WebKit2/Shared/API/c/WKSharedAPICast.h
Source/WebKit2/Shared/WebFindOptions.h
Source/WebKit2/WebProcess/WebPage/FindController.cpp