[BlackBerry] It can't Select texts in main frame when the current focus is in a IFrame
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 14:46:55 +0000 (14:46 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 14:46:55 +0000 (14:46 +0000)
commite23708ad96fc0edfc362664c139f05ab06a9bc10
tree7ad5427587df4da67b157908aaeedee039223bb6
parent3e58b9d19c6e8f0b39749884b884faca03a87c28
[BlackBerry] It can't Select texts in main frame when the current focus is in a IFrame
https://bugs.webkit.org/show_bug.cgi?id=107773

Patch by Sean Wang <Xuewen.Wang@torchmobile.com.cn> on 2013-01-24
Reviewed by Antonio Gomes.

PR285211 Internally reviewed by Genevieve Mak

When touch hold in the unfocused frame, it doesn't switch frame focus. Many
places in code depends on the webpage->forcusOrMainFrame(), including the
SelectionHandler, so it can't select in an unfocused frame. This patch switchs
frame focus when touch starts.

* WebKitSupport/TouchEventHandler.cpp:
(BlackBerry::WebKit::TouchEventHandler::doFatFingers):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/blackberry/ChangeLog
Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp