Long spins under Frame::rangeForPoint when doing Lookup on feedly.com
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 Jan 2015 08:17:39 +0000 (08:17 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 Jan 2015 08:17:39 +0000 (08:17 +0000)
commit8ba6c1fbbc0d653ee24f5f01a5fb50ca0dd67a65
tree60beb62610ba8b97bbafca3e8b1d413dff357d70
parenta9f68cf2bc5c6c7efc340b851112f2c64f81de8f
Long spins under Frame::rangeForPoint when doing Lookup on feedly.com
https://bugs.webkit.org/show_bug.cgi?id=140862
<rdar://problem/19566089>

Reviewed by Dan Bernstein.

* page/Frame.cpp:
(WebCore::Frame::rangeForPoint):
If there isn't a selectable text node at the given point, rangeForPoint
will eventually return null. However, we can make it fail much faster
by checking the initial position's text-ness and selectability.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179086 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/page/Frame.cpp