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

Issue 165473: Better location for setting the size of tab contents. This should (Closed)

Created:
11 years, 4 months ago by tony
Modified:
9 years, 7 months ago
Reviewers:
Nate Chapin
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Better location for setting the size of tab contents. This should catch all code paths. I noticed that middle clicking a bookmark wasn't working, so I found a single place to do this. This code is always run when a tab is added and it sizes the contents when it's loading in the background. BUG=619

Patch Set 1 #

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

Messages

Total messages: 6 (0 generated)
tony
11 years, 4 months ago (2009-08-13 18:49:48 UTC) #1
Nate Chapin
http://codereview.chromium.org/165473/diff/1/2 File chrome/browser/browser.cc (left): http://codereview.chromium.org/165473/diff/1/2#oldcode1515 Line 1515: contents->view()->SizeContents(old_contents->view()->GetContainerSize()); My impression (and this could be entirely ...
11 years, 4 months ago (2009-08-13 18:56:54 UTC) #2
tony
On 2009/08/13 18:56:54, Nate Chapin wrote: > http://codereview.chromium.org/165473/diff/1/2 > File chrome/browser/browser.cc (left): > > http://codereview.chromium.org/165473/diff/1/2#oldcode1515 ...
11 years, 4 months ago (2009-08-13 19:31:52 UTC) #3
Nate Chapin
This path is triggered by ctrl + clicking an anchor link on a page without ...
11 years, 4 months ago (2009-08-13 19:39:23 UTC) #4
tony
Ctrl+clicking an anchor link scrolls to the right place for me with this patch. I ...
11 years, 4 months ago (2009-08-13 20:21:51 UTC) #5
Nate Chapin
11 years, 4 months ago (2009-08-13 20:30:27 UTC) #6
LGTM

I just did some experimenting and confirmed this myself.  Sorry for being
paranoid.

On 2009/08/13 20:21:51, tony wrote:
> Ctrl+clicking an anchor link scrolls to the right place for me with this
patch. 
> I tested on Linux and Windows.
> 
> On 2009/08/13 19:39:23, Nate Chapin wrote:
> > This path is triggered by ctrl + clicking an anchor link on a page without
> > any special click event handling (I use wikipedia, since they have an
> > abundance of anchor links).
> > 
> > On Thu, Aug 13, 2009 at 12:31 PM, <tony@chromium.org> wrote:
> > 
> > > On 2009/08/13 18:56:54, Nate Chapin wrote:
> > >
> > >> http://codereview.chromium.org/165473/diff/1/2
> > >> File chrome/browser/browser.cc (left):
> > >>
> > >
> > >  http://codereview.chromium.org/165473/diff/1/2#oldcode1515
> > >> Line 1515:
> > >>
> > >
> > > contents->view()->SizeContents(old_contents->view()->GetContainerSize());
> > >
> > >> My impression (and this could be entirely wrong) was that, in this
> > >>
> > > code path, it
> > >
> > >> was crucial for SizeContents() to be called before
> > >> contents->controller().LoadURL().  Is that still the case with this
> > >>
> > > patch?
> > >
> > >> Could you make me feel better and confirm that this code path still
> > >>
> > > functions
> > >
> > >> correctly? :-)
> > >>
> > >
> > > Do you have a test case where this code path is triggered?  I can't seem
> > > to find one that uses a background tab.
> > >
> > >
> > > http://codereview.chromium.org/165473
> > >
> >

Powered by Google App Engine
This is Rietveld 408576698