-
alice.liu@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=105106 Reviewed by Dan Bernstein. * WebView/WebFrame.mm: (-[WebFrame elementAtPoint:]): Added. Takes an NSPoint to feed to the WebCore::Frame for hit-testing. Creates a WebElementDictionary from that WebCore::HitTestResult, and returns the element dictionary. * WebView/WebFramePrivate.h: Tools: Test for https://bugs.webkit.org/show_bug.cgi?id=105106 Add SPI to WebKit1 WebFrame for hit testing Reviewed by Dan Bernstein. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Added file Tests/mac/ElementAtPointInWebFrame.mm * TestWebKitAPI/Tests/mac/ElementAtPointInWebFrame.mm: Added. (TestWebKitAPI::TEST): Loads html with two divs positioned in the 2nd and 4th quadrants of the webview. Then hit-tests at three points, expecting to hit the two divs and body element. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
c2377217