summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorjcivelli@google.com <jcivelli@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-16 16:58:39 +0000
committerjcivelli@google.com <jcivelli@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-16 16:58:39 +0000
commit70febe810b310011fd724d12e67156fd3fccd012 (patch)
tree6ece3c5e30c2c37392e096f053d993760d70d082 /views
parenta251d2d754765fd0536316d01c969ef881ad6a28 (diff)
downloadchromium_src-70febe810b310011fd724d12e67156fd3fccd012.zip
chromium_src-70febe810b310011fd724d12e67156fd3fccd012.tar.gz
chromium_src-70febe810b310011fd724d12e67156fd3fccd012.tar.bz2
Add style to clip children which reduces flashing when the tab control is resized.
The tab control still flashes a little bit but it is only the outer area and not the large content area/child controls. Fixing that probably requires drawing the tab control on our own which is perhaps overkill. BUG=28383 TEST=follow steps given in the bug and resize password manager window, tab should not flicker as much as it did earlier. Original patch by Satish: http://codereview.chromium.org/1646009/show Review URL: http://codereview.chromium.org/1622029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44785 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/controls/tabbed_pane/native_tabbed_pane_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/controls/tabbed_pane/native_tabbed_pane_win.cc b/views/controls/tabbed_pane/native_tabbed_pane_win.cc
index 7426f72..26579f9 100644
--- a/views/controls/tabbed_pane/native_tabbed_pane_win.cc
+++ b/views/controls/tabbed_pane/native_tabbed_pane_win.cc
@@ -202,10 +202,11 @@ void NativeTabbedPaneWin::CreateNativeControl() {
// contents will use an RTL layout correctly (by virtue of the mirroring
// infrastructure in views doing the right thing with each View we put
// in the tab).
+ DWORD style = WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE | WS_CLIPCHILDREN;
HWND tab_control = ::CreateWindowEx(0,
WC_TABCONTROL,
L"",
- WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE,
+ style,
0, 0, width(), height(),
GetWidget()->GetNativeView(), NULL, NULL,
NULL);