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

Issue 199010: Fix for the flashing of the front tab.... (Closed)

Created:
11 years, 3 months ago by cpu_(ooo_6.6-7.5)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google), Nate Chapin, laforge
Visibility:
Public.

Description

Fix for the flashing of the front tab. - The background tabs think they are visible causing paints to be executed. These steal the backing store from the visible tab Please read the bug for more info. BUG=20831 TEST= see bug for steps Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25739

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M chrome/browser/tabs/tab_strip_model.cc View 1 chunk +6 lines, -1 line 1 comment Download

Messages

Total messages: 9 (0 generated)
cpu_(ooo_6.6-7.5)
Please review the bug for all the info. I have tried several other approaches and ...
11 years, 3 months ago (2009-09-03 19:01:38 UTC) #1
Evan Martin
Brett may have ideas.
11 years, 3 months ago (2009-09-03 19:02:33 UTC) #2
Amanda Walker
We're definitely getting paint requests for background tabs. I added code (http://codereview.chromium.org/175027) to handle that ...
11 years, 3 months ago (2009-09-03 19:06:36 UTC) #3
Amanda Walker
lgtm if brettw likes it.
11 years, 3 months ago (2009-09-04 03:01:29 UTC) #4
brettw
Carlos and I already talked about this for a while, and this seems fine. Brett ...
11 years, 3 months ago (2009-09-04 03:37:48 UTC) #5
darin (slow to review)
http://codereview.chromium.org/199010/diff/1/2 File chrome/browser/tabs/tab_strip_model.cc (right): http://codereview.chromium.org/199010/diff/1/2#newcode406 Line 406: contents->HideContents(); shouldn't we hide the contents before we ...
11 years, 3 months ago (2009-09-04 06:25:57 UTC) #6
cpu_(ooo_6.6-7.5)
> why not create tabs hidden first? I looked into it but it seems difficult. ...
11 years, 3 months ago (2009-09-04 18:46:51 UTC) #7
cpu_(ooo_6.6-7.5)
Actually, even changing the order of contents->view()->SizeContents(..) contents->HideContents(); In the current CL causes bad effects, ...
11 years, 3 months ago (2009-09-04 21:02:30 UTC) #8
darin (slow to review)
11 years, 3 months ago (2009-09-09 05:08:04 UTC) #9
> We would need to move up both calls or have a special version of SetSize()
that
> does not care about is_hidden_

Ah, I see.  I noticed that the RenderWidget will force itself to be non hidden
if asked to resize while it is hidden.  So, we definitely can't hide first and
resize later.

Given the is_hidden_ check in RenderWidgetHostViewWin's DidPaintRect method, I
believe that any extra paint we might get from the RenderWidget will just be
dropped on the floor.  The only downside to resizing first and hiding later is
that we pay the cost of a layout and paint in the renderer, but addressing that
will be a larger change.

That's a long winded way of saying LGTM.  Sorry for the delay!

Powered by Google App Engine
This is Rietveld 408576698