diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 03:02:44 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 03:02:44 +0000 |
commit | cccbe29c642c47816478b8ba3df9329fcee03728 (patch) | |
tree | e44c92548f7aed7f716f73298537c9f00ad906e1 /chrome/renderer/render_widget.cc | |
parent | d1ec590811a1d4e593c1ba7ad52cee26cef16305 (diff) | |
download | chromium_src-cccbe29c642c47816478b8ba3df9329fcee03728.zip chromium_src-cccbe29c642c47816478b8ba3df9329fcee03728.tar.gz chromium_src-cccbe29c642c47816478b8ba3df9329fcee03728.tar.bz2 |
Implement browser scrolling on posix.
This code still has not been tested on nested scroll frames (e.g. webkit/data/test_shell/iframes/test1.html) because they don't render correctly yet. But it does work for scrolling horizontally and vertically on the main frame.
Review URL: http://codereview.chromium.org/20244
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9550 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_widget.cc')
-rw-r--r-- | chrome/renderer/render_widget.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc index 83732eb..fd5dcff 100644 --- a/chrome/renderer/render_widget.cc +++ b/chrome/renderer/render_widget.cc @@ -301,10 +301,12 @@ void RenderWidget::OnPaintRectAck() { } void RenderWidget::OnScrollRectAck() { +#if defined(OS_WIN) DCHECK(scroll_reply_pending()); RenderProcess::FreeSharedMemory(current_scroll_buf_); current_scroll_buf_ = NULL; +#endif // Continue scrolling if necessary... DoDeferredScroll(); |