Title: [122382] trunk/Source/WebCore
Revision
122382
Author
[email protected]
Date
2012-07-11 16:01:58 -0700 (Wed, 11 Jul 2012)

Log Message

[chromium] [regression] Don't use ScrollByPrecisePixels on Chromium Mac.
https://bugs.webkit.org/show_bug.cgi?id=91020

Reviewed by Adam Barth.

A change in https://bugs.webkit.org/show_bug.cgi?id=87535 to
improve the operation of smooth scrolling incorrectly caused
Chromium Mac to use the wrong scroll granularity on
hasPreciseScrollingDeltas() == true wheelevent scrolls.
Exclude the change on the Chromium Mac platform.

* platform/ScrollAnimator.cpp:
(WebCore::ScrollAnimator::handleWheelEvent): Adjusted #ifdef to exclude Chromium
Mac from ScrollByPrecisePixels change.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (122381 => 122382)


--- trunk/Source/WebCore/ChangeLog	2012-07-11 22:54:31 UTC (rev 122381)
+++ trunk/Source/WebCore/ChangeLog	2012-07-11 23:01:58 UTC (rev 122382)
@@ -1,3 +1,20 @@
+2012-07-11  Robert Kroeger  <[email protected]>
+
+        [chromium] [regression] Don't use ScrollByPrecisePixels on Chromium Mac.
+        https://bugs.webkit.org/show_bug.cgi?id=91020
+
+        Reviewed by Adam Barth.
+
+        A change in https://bugs.webkit.org/show_bug.cgi?id=87535 to
+        improve the operation of smooth scrolling incorrectly caused
+        Chromium Mac to use the wrong scroll granularity on
+        hasPreciseScrollingDeltas() == true wheelevent scrolls.
+        Exclude the change on the Chromium Mac platform.
+
+        * platform/ScrollAnimator.cpp:
+        (WebCore::ScrollAnimator::handleWheelEvent): Adjusted #ifdef to exclude Chromium
+        Mac from ScrollByPrecisePixels change.
+
 2012-07-11  Jia Pu  <[email protected]>
 
         On Mac, autocorrection sometimes fails to take place in Safari.

Modified: trunk/Source/WebCore/platform/ScrollAnimator.cpp (122381 => 122382)


--- trunk/Source/WebCore/platform/ScrollAnimator.cpp	2012-07-11 22:54:31 UTC (rev 122381)
+++ trunk/Source/WebCore/platform/ScrollAnimator.cpp	2012-07-11 23:01:58 UTC (rev 122382)
@@ -91,7 +91,7 @@
 
     bool handled = false;
 
-#if PLATFORM(CHROMIUM)
+#if PLATFORM(CHROMIUM) && !OS(DARWIN)
     ScrollGranularity granularity = e.hasPreciseScrollingDeltas() ? ScrollByPrecisePixel : ScrollByPixel;
 #else
     ScrollGranularity granularity = ScrollByPixel;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to