Commit 1764bae9 authored by xan@webkit.org's avatar xan@webkit.org

2009-04-28 Xan Lopez <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        Leave a bit of space from the previous page when advacing a whole
        page. This matches the behavior of our scrollbar scrolling code
        and is just nicer in general.

        * webkit/webkitwebview.cpp:

git-svn-id: svn://svn.chromium.org/blink/trunk@42932 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 30fbf448
2009-04-28 Xan Lopez <xlopez@igalia.com>
Reviewed by Gustavo Noronha.
Leave a bit of space from the previous page when advacing a whole
page. This matches the behavior of our scrollbar scrolling code
and is just nicer in general.
* webkit/webkitwebview.cpp:
2009-04-28 Xan Lopez <xlopez@igalia.com>
Unreviewed: committed a few bits by mistake, remove them.
......
......@@ -827,9 +827,9 @@ static gboolean webkit_web_view_real_move_cursor (WebKitWebView* webView, GtkMov
break;
case GTK_MOVEMENT_PAGES:
if (count == 1)
view->scrollBy(IntSize(0, view->visibleHeight()));
view->scrollBy(IntSize(0, view->visibleHeight() * 0.9));
else if (count == -1)
view->scrollBy(IntSize(0, -view->visibleHeight()));
view->scrollBy(IntSize(0, -view->visibleHeight() * 0.9));
break;
case GTK_MOVEMENT_BUFFER_ENDS:
if (count == 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment