Commit 0a9480b7 authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

[BlackBerry] SelectionHandler: fix truncated line

https://bugs.webkit.org/show_bug.cgi?id=112133

Patch by Alberto Garcia <agarcia@igalia.com> on 2013-03-12
Reviewed by Carlos Garcia Campos.

One of the calls to fatFingersResult.nodeAsElementIfApplicable()
was somehow truncated when the selection start animation was
upstreamed in r144640.

* WebKitSupport/SelectionHandler.cpp:
(BlackBerry::WebKit::SelectionHandler::selectAtPoint):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a9320ca4
2013-03-12 Alberto Garcia <agarcia@igalia.com>
[BlackBerry] SelectionHandler: fix truncated line
https://bugs.webkit.org/show_bug.cgi?id=112133
Reviewed by Carlos Garcia Campos.
One of the calls to fatFingersResult.nodeAsElementIfApplicable()
was somehow truncated when the selection start animation was
upstreamed in r144640.
* WebKitSupport/SelectionHandler.cpp:
(BlackBerry::WebKit::SelectionHandler::selectAtPoint):
2013-03-12 Alberto Garcia <agarcia@igalia.com>
 
[BlackBerry] Fix visible_units.h includes
......
......@@ -648,7 +648,7 @@ void SelectionHandler::selectAtPoint(const WebCore::IntPoint& location, Selectio
FatFingersResult fatFingersResult = m_webPage->m_touchEventHandler->lastFatFingersResult();
if (selectNodeIfFatFingersResultIsLink(fatFingersResult))
return;
if (!fatFingersResult.resultMatches(location, FatFingers::Text) || !fatFingersResult.positionWasAdjusted() || !fatFingersResult.nodeAsElem
if (!fatFingersResult.resultMatches(location, FatFingers::Text) || !fatFingersResult.positionWasAdjusted() || !fatFingersResult.nodeAsElementIfApplicable())
fatFingersResult = FatFingers(m_webPage, location, FatFingers::Text).findBestPoint();
if (!fatFingersResult.positionWasAdjusted()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment