Code to determine the correct frame under the window point was
converting the point incorrectly.
Reviewed by Chris.
* WebView.subproj/WebView.m:
(-[WebView _frameViewAtWindowPoint:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9212
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-05-24 Richard Williamson <rjw@apple.com>
+
+ Fixed <rdar://problem/4097289> -[WebView elementAtPoint:] failing when WebView is nested and offset
+
+ Code to determine the correct frame under the window point was
+ converting the point incorrectly.
+
+ Reviewed by Chris.
+
+ * WebView.subproj/WebView.m:
+ (-[WebView _frameViewAtWindowPoint:]):
+
2005-05-23 John Sullivan <sullivan@apple.com>
Reviewed by Kevin.
- (WebFrameView *)_frameViewAtWindowPoint:(NSPoint)point
{
- NSView *view = [self hitTest:[[self superview] convertPoint:point toView:nil]];
+ NSView *view = [self hitTest:[[self superview] convertPoint:point fromView:nil]];
return (WebFrameView *)[view _web_superviewOfClass:[WebFrameView class] stoppingAtClass:[self class]];
}