Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Issue 440793002: Fix the painting problems seen in the tabstrip when switching from a theme to glass on Windows. (Closed)

Created:
6 years, 4 months ago by ananta
Modified:
6 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix the painting problems seen in the tabstrip when switching from a theme to glass on Windows. This regressed with the LegacyRenderWidgetHostHWND. It looks like the reason is that the LegacyRenderWidgetHostHWND eats paint messages which would previously cause an invalidation in the parent when bounds change, etc. Proposed fix is to pass SWP_NOREDRAW to the SetWindowPos calls used by the LegacyRenderWidgetHostHWND class. BUG=388690 R=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287994

Patch Set 1 #

Total comments: 2

Patch Set 2 : Invalidate the parent window when legacy bounds change #

Patch Set 3 : Reverted incorrect code #

Patch Set 4 : Invalidate the parent during theme changes #

Patch Set 5 : Added SchedulePaint in HWNDMessageHandler::FrameTypeChanged #

Patch Set 6 : Added SWP_NOREDRAW to the SetWindowPos call used by LegacyRenderWidgetHostHWND #

Patch Set 7 : Removed unused code #

Patch Set 8 : Removed debugging code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -5 lines) Patch
M content/browser/renderer_host/legacy_render_widget_host_win.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/legacy_render_widget_host_win.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 2 5 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
ananta
https://codereview.chromium.org/440793002/diff/1/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/440793002/diff/1/ui/views/win/hwnd_message_handler.cc#newcode824 ui/views/win/hwnd_message_handler.cc:824: base::TimeDelta::FromMilliseconds(500)); It now appears that the bug was never ...
6 years, 4 months ago (2014-08-05 00:24:03 UTC) #1
sky
https://codereview.chromium.org/440793002/diff/1/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/440793002/diff/1/ui/views/win/hwnd_message_handler.cc#newcode824 ui/views/win/hwnd_message_handler.cc:824: base::TimeDelta::FromMilliseconds(500)); On 2014/08/05 00:24:03, ananta wrote: > It now ...
6 years, 4 months ago (2014-08-05 01:30:56 UTC) #2
ananta
On 2014/08/05 01:30:56, sky wrote: > https://codereview.chromium.org/440793002/diff/1/ui/views/win/hwnd_message_handler.cc > File ui/views/win/hwnd_message_handler.cc (right): > > https://codereview.chromium.org/440793002/diff/1/ui/views/win/hwnd_message_handler.cc#newcode824 > ...
6 years, 4 months ago (2014-08-05 15:12:08 UTC) #3
ananta
On 2014/08/05 15:12:08, ananta wrote: > On 2014/08/05 01:30:56, sky wrote: > > > https://codereview.chromium.org/440793002/diff/1/ui/views/win/hwnd_message_handler.cc ...
6 years, 4 months ago (2014-08-05 15:21:23 UTC) #4
sky
On Tue, Aug 5, 2014 at 8:12 AM, <ananta@chromium.org> wrote: > On 2014/08/05 01:30:56, sky ...
6 years, 4 months ago (2014-08-05 17:36:41 UTC) #5
ananta
On 2014/08/05 17:36:41, sky wrote: > On Tue, Aug 5, 2014 at 8:12 AM, <mailto:ananta@chromium.org> ...
6 years, 4 months ago (2014-08-05 17:58:28 UTC) #6
sky
This code should work with and without a legacy hwnd. And I still don't think ...
6 years, 4 months ago (2014-08-05 21:54:08 UTC) #7
ananta
On 2014/08/05 21:54:08, sky wrote: > This code should work with and without a legacy ...
6 years, 4 months ago (2014-08-05 23:03:38 UTC) #8
ananta
On 2014/08/05 23:03:38, ananta wrote: > On 2014/08/05 21:54:08, sky wrote: > > This code ...
6 years, 4 months ago (2014-08-05 23:28:24 UTC) #9
sky
It seems to me the code path that is triggering the theme to change should ...
6 years, 4 months ago (2014-08-06 00:21:58 UTC) #10
ananta
On 2014/08/06 00:21:58, sky wrote: > It seems to me the code path that is ...
6 years, 4 months ago (2014-08-06 00:28:15 UTC) #11
ananta
Updated thepatch to add in the SWP_NOREDRAW flag to SetWindowPos used by the Legacy class. ...
6 years, 4 months ago (2014-08-06 22:42:13 UTC) #12
sky
LGTM
6 years, 4 months ago (2014-08-07 00:00:12 UTC) #13
ananta
The CQ bit was checked by ananta@chromium.org
6 years, 4 months ago (2014-08-07 00:01:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ananta@chromium.org/440793002/140001
6 years, 4 months ago (2014-08-07 00:06:40 UTC) #15
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 07:38:26 UTC) #16
Message was sent while issue was closed.
Change committed as 287994

Powered by Google App Engine
This is Rietveld 408576698