From f21c613a0ab52b707f8a2effacda74c77f4448ea Mon Sep 17 00:00:00 2001 From: "mad@chromium.org" Date: Thu, 12 Feb 2009 14:46:17 +0000 Subject: This is an attempt at finding the reason for the page_cycler slowness caused by the new resize corner. Local experiment led me to believe that it is WebKit that is slower when we specify a resize corner area. To validate this hypothesis, I always return an empty rect to WebKit, but I still compute and push the rect to the render widget and I also draw the bitmap even if this will cause it to be drawn on top of the scroll bars when there is only one. TBR=brettw git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9654 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/test_browser_window.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/test') diff --git a/chrome/test/test_browser_window.h b/chrome/test/test_browser_window.h index fef495a..0dbff2d 100644 --- a/chrome/test/test_browser_window.h +++ b/chrome/test/test_browser_window.h @@ -34,7 +34,7 @@ class TestBrowserWindow : public BrowserWindow { virtual void UpdateLoadingAnimations(bool should_animate) {} virtual void SetStarredState(bool is_starred) {} virtual gfx::Rect GetNormalBounds() const { return gfx::Rect(); } - virtual bool IsMaximized() { return false; } + virtual bool IsMaximized() const { return false; } virtual LocationBar* GetLocationBar() const { return const_cast(&location_bar_); } @@ -43,6 +43,7 @@ class TestBrowserWindow : public BrowserWindow { bool should_restore_state) {} virtual void FocusToolbar() {} virtual bool IsBookmarkBarVisible() const { return false; } + virtual gfx::Rect GetRootWindowResizerRect() const { return gfx::Rect(); } virtual void ToggleBookmarkBar() {} virtual void ShowAboutChromeDialog() {} virtual void ShowBookmarkManager() {} -- cgit v1.1