2006-03-17 Eric Seidel <eseidel@apple.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Mar 2006 11:00:32 +0000 (11:00 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Mar 2006 11:00:32 +0000 (11:00 +0000)
        Reviewed by ggaren.

        Fix Spinneret to pass Events as const & not as pointers.

        * Spinneret/Spinneret/WebView.cpp:
        (WebKit::WebView::mouseMoved):
        (WebKit::WebView::mouseDown):
        (WebKit::WebView::mouseUp):
        (WebKit::WebView::mouseDoubleClick):
        (WebKit::WebView::keyPress):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13351 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Spinneret/Spinneret/WebView.cpp

index 3a22ed4b13121a98d09e670ff1629342e4d03022..5b46bb3a448d16373c3d53b75ffc3794f54361bf 100644 (file)
@@ -1,3 +1,16 @@
+2006-03-17  Eric Seidel  <eseidel@apple.com>
+
+        Reviewed by ggaren.
+
+        Fix Spinneret to pass Events as const & not as pointers.
+
+        * Spinneret/Spinneret/WebView.cpp:
+        (WebKit::WebView::mouseMoved):
+        (WebKit::WebView::mouseDown):
+        (WebKit::WebView::mouseUp):
+        (WebKit::WebView::mouseDoubleClick):
+        (WebKit::WebView::keyPress):
+
 2006-03-17  Eric Seidel  <eseidel@apple.com>
 
         Reviewed by justing.
index 782b522c914d4b70dc3b332f45375d50a8e05ae0..59c31873ac765ad297859bd74f7bc6d18103c5e4 100755 (executable)
@@ -128,25 +128,25 @@ WebFrame* WebView::mainFrame()
 void WebView::mouseMoved(WPARAM wParam, LPARAM lParam)
 {
     MouseEvent mouseEvent(windowHandle(), wParam, lParam, 0);
-    d->mainFrame->viewImpl()->viewportMouseMoveEvent(&mouseEvent);
+    d->mainFrame->viewImpl()->viewportMouseMoveEvent(mouseEvent);
 }
 
 void WebView::mouseDown(WPARAM wParam, LPARAM lParam)
 {
     MouseEvent mouseEvent(windowHandle(), wParam, lParam, 1);
-    d->mainFrame->viewImpl()->viewportMousePressEvent(&mouseEvent);
+    d->mainFrame->viewImpl()->viewportMousePressEvent(mouseEvent);
 }
 
 void WebView::mouseUp(WPARAM wParam, LPARAM lParam)
 {
     MouseEvent mouseEvent(windowHandle(), wParam, lParam, 1);
-    d->mainFrame->viewImpl()->viewportMouseReleaseEvent(&mouseEvent);
+    d->mainFrame->viewImpl()->viewportMouseReleaseEvent(mouseEvent);
 }
 
 void WebView::mouseDoubleClick(WPARAM wParam, LPARAM lParam)
 {
     MouseEvent mouseEvent(windowHandle(), wParam, lParam, 2);
-    d->mainFrame->viewImpl()->viewportMouseReleaseEvent(&mouseEvent);
+    d->mainFrame->viewImpl()->viewportMouseReleaseEvent(mouseEvent);
 }
 
 bool WebView::keyPress(WPARAM wParam, LPARAM lParam)
@@ -154,7 +154,7 @@ bool WebView::keyPress(WPARAM wParam, LPARAM lParam)
     KeyEvent keyEvent(windowHandle(), wParam, lParam);
 
     FrameWin* frame = static_cast<FrameWin*>(d->mainFrame->impl());
-    bool handled = frame->keyPress(&keyEvent);
+    bool handled = frame->keyPress(keyEvent);
     if (!handled && !keyEvent.isKeyUp()) {
         NodeImpl* start = frame->selection().start().node();
         if (start && start->isContentEditable()) {