[BlackBerry] Text selection - selection gets broken in test.com/individuals.htm
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Mar 2012 03:47:00 +0000 (03:47 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Mar 2012 03:47:00 +0000 (03:47 +0000)
commit87cbd91304010c5f5fe8fa136b46562dcd139653
treef5d60e4deee31422423e62f040411ced8c6f9550
parent81f481b6f46b0792a59031d9d36f67e4df7acc2c
[BlackBerry] Text selection - selection gets broken in test.com/individuals.htm
https://bugs.webkit.org/show_bug.cgi?id=82292

Change to check and avoid text selection across frames.

Internal reviewed by Mike Fenton

Patch by Sean Wang <Xuewen.Wang@torchmobile.com.cn> on 2012-03-27
Reviewed by Rob Buis.

* WebKitSupport/SelectionHandler.cpp:
(BlackBerry::WebKit::visiblePositionForPointIgnoringClipping):
    support selection across frames, so check if the *framePoint* is in
    the *frame*.
(BlackBerry::WebKit::SelectionHandler::setSelection):
    function returns a null VisablePosition, it stands for a invalid position
    or a position in the different frames, therefor we don't execute setting
    handle's position.

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