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

Issue 67044: Fix missing backing store in Linux. (Closed)

Created:
11 years, 8 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
Reviewers:
brettw, Evan Martin
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix missing backing store in Linux. Issue: In the renderer host, the RenderWidgetHostView gets created before the ViewMsg_New gets sent. In the Linux code, gtk packing of the RenderWidgetHostView will cause a configure-event to happen, which leads to ViewHost_Resize getting sent before the ViewMsg_New gets sent. This eventually leads to the backing store never getting created. See the bug report for details. Fix: Add a SetChildSize() method to WebContentsView. Windows and Mac keep their current flow of just calling SetSize() on the child. Linux defers packing from the RenderWidgetHostView creation to the SetChildSize() call. BUG=9830 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13725

Patch Set 1 #

Patch Set 2 : Woops, typos for mac and win. Fixed. #

Total comments: 2

Patch Set 3 : Move the private pure virtuals to public, drop the *Internal methods. #

Patch Set 4 : Fix some lint errors. #

Total comments: 1

Patch Set 5 : Delete unnecessary member variable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M chrome/browser/tab_contents/web_contents.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/web_contents_view.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/web_contents_view_gtk.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view_gtk.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/web_contents_view_mac.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view_mac.mm View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view_win.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_view_win.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
willchan no longer on Chromium
I don't really understand the whole design of the various classes here, so my fix ...
11 years, 8 months ago (2009-04-10 18:25:48 UTC) #1
brettw
http://codereview.chromium.org/67044/diff/1010/11 File chrome/browser/tab_contents/web_contents_view.h (right): http://codereview.chromium.org/67044/diff/1010/11#newcode125 Line 125: void SetChildSize(RenderWidgetHostView* rwh_view) { Why can't this be ...
11 years, 8 months ago (2009-04-10 19:31:16 UTC) #2
willchan no longer on Chromium
http://codereview.chromium.org/67044/diff/1010/11 File chrome/browser/tab_contents/web_contents_view.h (right): http://codereview.chromium.org/67044/diff/1010/11#newcode125 Line 125: void SetChildSize(RenderWidgetHostView* rwh_view) { tOn 2009/04/10 19:31:16, brettw ...
11 years, 8 months ago (2009-04-10 19:47:43 UTC) #3
willchan no longer on Chromium
ping
11 years, 8 months ago (2009-04-14 16:29:29 UTC) #4
Evan Martin
lgtm http://codereview.chromium.org/67044/diff/37/1019 File chrome/browser/tab_contents/web_contents_view_win.h (right): http://codereview.chromium.org/67044/diff/37/1019#newcode104 Line 104: RenderWidgetHostView* rwh_view_; comment on member variables?
11 years, 8 months ago (2009-04-14 23:30:43 UTC) #5
willchan no longer on Chromium
11 years, 8 months ago (2009-04-15 00:10:37 UTC) #6
Woops, that member variable wasn't supposed to be there.  I've deleted it. 
Thanks for catching that.

Powered by Google App Engine
This is Rietveld 408576698