- fixed <rdar://problem/
4109564> REGRESSION (Atlanta): maps.google.com doesn't always center California correctly
* khtml/ecma/kjs_events.cpp: (offsetFromTarget): Fix two places that said X where they should say Y.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9119
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
-2005-05-05 David Harrison <harrison@apple.com>
+2005-05-05 Darin Adler <darin@apple.com>
+
+ Reviewed by Dave Hyatt.
- Reviewed by me.
+ - fixed <rdar://problem/4109564> REGRESSION (Atlanta): maps.google.com doesn't always center California correctly
+
+ * khtml/ecma/kjs_events.cpp: (offsetFromTarget): Fix two places that said X where they should say Y.
+
+2005-05-05 David Harrison <harrison@apple.com>
Restore fixed setEndingSelection. Fixed method was ifdef'd out
because change was at end of Tiger development, but method is
static QPoint offsetFromTarget(const MouseRelatedEventImpl *e)
{
int x = e->clientX();
- int y = e->clientX();
+ int y = e->clientY();
NodeImpl *n = e->target();
if (n) {
int rx, ry;
if (r->absolutePosition(rx, ry)) {
x -= rx;
- x -= ry;
+ y -= ry;
}
}
}