Reviewed by Richard
<rdar://problem/
3748323> Problem with -[WebView editableDOMRangeForPoint:] (-isFlipped not taken into account?)
<rdar://problem/
3852590> REGRESSION (Mail): Dropped content appears in wrong place if Mail message is scrolled down
When implementing drag and drop, moveDragCaretToPoint: and editableDOMRangeForPoint: are used in
concert to track the mouse and determine a drop location, respectively. However, moveDragCaretToPoint:
did a conversion of the passed-in point to the document view's coordinate space, whereas
editableDOMRangeForPoint: did not. Now it does.
Note that I will need to coordinate with Grant to have him roll out some code in Mail that
attempts to work around this problem (unsuccessfully), and actually manages to block the
real fix (which needs to be in WebKit).
* WebView.subproj/WebView.m:
(-[WebView editableDOMRangeForPoint:]): Convert the passed-in point to the document view's coordinate space.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8106
268f45cc-cd09-0410-ab3c-
d52691b4dbfc