Reviewed by Dave Hyatt.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 May 2005 17:55:06 +0000 (17:55 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 May 2005 17:55:06 +0000 (17:55 +0000)
        - 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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/ecma/kjs_events.cpp

index 3782993e8fb4936f90d576a89510367352bbf2fd..5419a5be5ccf55a68d8de1fbf94e9857f95e1ab4 100644 (file)
@@ -1,6 +1,12 @@
-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
index 9772e9cdd8b19b5fbf68e5f6aa54a5f1c50ba2a6..fea10736d47cf5e6150d1a631bc6b0bca4df83f8 100644 (file)
@@ -698,7 +698,7 @@ Value DOMMouseEvent::tryGet(ExecState *exec, const Identifier &p) const
 static QPoint offsetFromTarget(const MouseRelatedEventImpl *e)
 {
     int x = e->clientX();
-    int y = e->clientX();
+    int y = e->clientY();
 
     NodeImpl *n = e->target();
     if (n) {
@@ -710,7 +710,7 @@ static QPoint offsetFromTarget(const MouseRelatedEventImpl *e)
                 int rx, ry;
                 if (r->absolutePosition(rx, ry)) {
                     x -= rx;
-                    x -= ry;
+                    y -= ry;
                 }
             }
         }