summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_widget.cc
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-19 18:05:14 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-19 18:05:14 +0000
commitfb63b72ec46cf173aff67fc7c377da1c56a49fce (patch)
treeef462a15ea4c0f9d23ad31dc670ec745df59e30d /chrome/renderer/render_widget.cc
parent1bd24327fb1ff4461e75e8347e3ed6c672632776 (diff)
downloadchromium_src-fb63b72ec46cf173aff67fc7c377da1c56a49fce.zip
chromium_src-fb63b72ec46cf173aff67fc7c377da1c56a49fce.tar.gz
chromium_src-fb63b72ec46cf173aff67fc7c377da1c56a49fce.tar.bz2
Hook up the resize rect for Mac and enable its use in the renderer (mac-only).
Review URL: http://codereview.chromium.org/21512 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_widget.cc')
-rw-r--r--chrome/renderer/render_widget.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc
index 7d23d36..04f16f1 100644
--- a/chrome/renderer/render_widget.cc
+++ b/chrome/renderer/render_widget.cc
@@ -703,7 +703,12 @@ void RenderWidget::GetRootWindowResizerRect(WebWidget* webwidget,
// This is disabled to verify if WebKit is responsible for the slow down
// that was witnessed in the page cycler tests when the resize corner
// code was commited...
+#if defined(OS_MACOSX)
+ // ...we need it enabled on Mac so scrollbars are usable.
+ *rect = resizer_rect_;
+#elif defined(OS_WIN) || defined(OS_LINUX)
*rect = gfx::Rect(); // resizer_rect_;
+#endif
}
void RenderWidget::OnImeSetInputMode(bool is_active) {