Changeset 50871 in webkit


Ignore:
Timestamp:
Nov 12, 2009 1:03:32 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-12 Kinuko Yasuda <kinuko@google.com>

Reviewed by David Levin.

Support Gtk scrollwheel behavior for horizontal scrollbars on Linux
Chromium too.
https://bugs.webkit.org/show_bug.cgi?id=31292

No new tests. (Corresponding test for Gtk+ is
platform/gtk/scrollbars/overflow-scrollbar-horizontal-wheel-scroll.html)

  • page/EventHandler.cpp:
  • page/chromium/EventHandlerChromium.cpp:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r50869 r50871  
     12009-11-12  Kinuko Yasuda  <kinuko@google.com>
     2
     3        Reviewed by David Levin.
     4
     5        Support Gtk scrollwheel behavior for horizontal scrollbars on Linux
     6        Chromium too.
     7        https://bugs.webkit.org/show_bug.cgi?id=31292
     8
     9        No new tests. (Corresponding test for Gtk+ is
     10        platform/gtk/scrollbars/overflow-scrollbar-horizontal-wheel-scroll.html)
     11
     12        * page/EventHandler.cpp:
     13        * page/chromium/EventHandlerChromium.cpp:
     14
    1152009-11-12  Yuta Kitamura  <yutak@chromium.org>
    216
  • trunk/WebCore/page/EventHandler.cpp

    r50786 r50871  
    17921792}
    17931793
    1794 #if !PLATFORM(GTK)
     1794#if !PLATFORM(GTK) && !(PLATFORM(CHROMIUM) && PLATFORM(LINUX))
    17951795bool EventHandler::shouldTurnVerticalTicksIntoHorizontal(const HitTestResult&) const
    17961796{
  • trunk/WebCore/page/chromium/EventHandlerChromium.cpp

    r46592 r50871  
    155155}
    156156
     157#if PLATFORM(LINUX)
     158// GTK+ must scroll horizontally if the mouse pointer is on top of the
     159// horizontal scrollbar while scrolling with the wheel.
     160// This code comes from gtk/EventHandlerGtk.cpp.
     161bool EventHandler::shouldTurnVerticalTicksIntoHorizontal(const HitTestResult& result) const
     162{
     163    return result.scrollbar() && result.scrollbar()->orientation() == HorizontalScrollbar;
     164}
     165#endif
     166
    157167} // namespace WebCore
Note: See TracChangeset for help on using the changeset viewer.