-
mifenton@rim.com authored
https://bugs.webkit.org/show_bug.cgi?id=105198 Reviewed by Rob Buis. PR 258038. Improve closest word matching by giving preference to the left when distances are equal. Also enforce container matching to avoid selecting the paragraph marker if a CE div is followed immediately by a CE paragraph. Minor refactor - don't calculate the distance if the selection isn't on a word. Reviewed Internally by Gen Mak and Nima Ghanavatian. * WebKitSupport/DOMSupport.cpp: (BlackBerry::WebKit::DOMSupport::visibleSelectionForClosestActualWordStart): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
8514aee6