<rdar://problem/10337033> DOMRangeOfString:relativeTo:options has problems with ...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Oct 2011 16:39:23 +0000 (16:39 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Oct 2011 16:39:23 +0000 (16:39 +0000)
commit3c9c950eda637726111acc7b3d698177804007f3
tree9ae8b111f263183f03a965a155e1441bb25ed23e
parent8ec999342dcc7a175d9c853b40945d8e06c619da
<rdar://problem/10337033> DOMRangeOfString:relativeTo:options has problems with -webkit-user-select: none

Reviewed by Adam Roben.

Source/WebCore:

Test: added to TestWebKitAPI/Tests/mac/DOMRangeOfString.mm

* page/Page.cpp:
(WebCore::Page::rangeOfString): This function was incorrectly adding the StartInSelection option to
the initial search.

Tools:

* TestWebKitAPI/Tests/mac/DOMRangeOfString.mm:
(TestWebKitAPI::TEST):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@98350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/page/Page.cpp
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/mac/DOMRangeOfString.mm