Reviewed by Adam Roben.
authoraliceli1 <aliceli1@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Sep 2006 17:30:32 +0000 (17:30 +0000)
committeraliceli1 <aliceli1@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Sep 2006 17:30:32 +0000 (17:30 +0000)
        fixed windows build

        * dom/WheelEvent.cpp:
        (WebCore::WheelEvent::WheelEvent):
        changed lrint to lround

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

WebCore/ChangeLog
WebCore/dom/WheelEvent.cpp

index e8f17fab6cfc71199c0c087e5abe1858e1b57c3d..984216a4c547be54da84e8d45d3216220fd9c86d 100644 (file)
@@ -1,3 +1,13 @@
+2006-09-20  Alice Liu  <alice.liu@apple.com>
+
+        Reviewed by Adam Roben.
+
+        fixed windows build
+
+        * dom/WheelEvent.cpp:
+        (WebCore::WheelEvent::WheelEvent):
+        changed lrint to lround
+
 2006-09-20  Sam Weinig  <sam.weinig@gmail.com>
 
         Build Fix.  Adds isHorizontal attribute back to WheelEvent
index 08bbaf7bb6ec3c5ca59d71600bf451019e4f0ed8..f29f0fa01a200ba08d30de8ac56dfb65afc6efde 100644 (file)
@@ -45,8 +45,8 @@ WheelEvent::WheelEvent(float wheelDeltaX, float wheelDeltaY, AbstractView* view,
     : MouseRelatedEvent(mousewheelEvent,
                         true, true, view, 0, screenX, screenY, pageX, pageY, 
                         ctrlKey, altKey, shiftKey, metaKey)
-    , m_wheelDeltaX(lrint(wheelDeltaX) * 120)
-    , m_wheelDeltaY(lrint(wheelDeltaY) * 120) // Normalize to the Windows 120 multiple
+    , m_wheelDeltaX(lround(wheelDeltaX) * 120)
+    , m_wheelDeltaY(lround(wheelDeltaY) * 120) // Normalize to the Windows 120 multiple
 {
 }