Fix find on web pages with -webkit-user-select: none
authorJinwoo Song <jinwoo7.song@samsung.com>
Mon, 25 Mar 2013 06:55:26 +0000 (15:55 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 26 Mar 2013 07:40:54 +0000 (16:40 +0900)
commitcfe7c5adcca4f17461d9f34aa29506a3fd967d23
treedf23ade711059a3f102e9e510bac2808468c5edb
parentfe1f625264d40681518a0078586bdaf477e1daba
Fix find on web pages with -webkit-user-select: none

[Title] Fix find on web pages with -webkit-user-select: none
[Issue#] https://tizendev.org/bugs/browse/N_SE-25811
[Problem] Focus does not change to the matched string on web pages with -webkit-user-select: none
[Cause] frame selection returns NULL on web pages with -webkit-user-select: none and
        current WebKit2 find string algorithm is using the frame selection.
[Solution] Highlight the active matching string using the document's active marker function
           instead of frame selection. For this operation, findString() explictly index
           the current active matching string and scroll to the position.

Change-Id: I498c944c34be3b2c7bd76cd5ad506f7d11cc9b9e
Source/WTF/wtf/Platform.h
Source/WebKit2/WebProcess/WebPage/FindController.cpp
Source/WebKit2/WebProcess/WebPage/FindController.h