Fix <rdar://4979801> overflow divs don't respond to keyboard scrolling (affec...
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Sep 2007 21:34:39 +0000 (21:34 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Sep 2007 21:34:39 +0000 (21:34 +0000)
        Reviewed by Hyatt.

        * WebView.cpp:
        (WebView::keyDown): Attempt to scroll an overflow area before
        scrolling the whole frame.

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

WebKit/win/ChangeLog
WebKit/win/WebView.cpp

index 6dc3e13b2fa3430998c04f108bf749bdccacd8f7..80579d673ff37e8dd566335dc3e71edf4d840deb 100644 (file)
@@ -1,3 +1,13 @@
+2007-09-17  Adam Roben  <aroben@apple.com>
+
+        Fix <rdar://4979801> overflow divs don't respond to keyboard scrolling (affects RSS pages)
+
+        Reviewed by Hyatt.
+
+        * WebView.cpp:
+        (WebView::keyDown): Attempt to scroll an overflow area before
+        scrolling the whole frame.
+
 2007-09-17  Brady Eidson  <beidson@apple.com>
 
         Reviewed by Adam
index 4cee1deab6973a03dd1e8df79272b2a5dc2a4bea..0cd5beb0406ec8ac46e47e66e2105bb705320dff 100644 (file)
@@ -1090,7 +1090,8 @@ bool WebView::keyDown(WPARAM virtualKeyCode, LPARAM keyData, bool systemKeyDown)
             return true;
     }
 
-    frame->view()->scroll(direction, granularity);
+    if (!frame->eventHandler()->scrollOverflow(direction, granularity))
+        frame->view()->scroll(direction, granularity);
 
     return true;
 }