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

Issue 11308083: Fix the html select tag showing up at the wrong position. This was a regression from r166446. (Closed)

Created:
8 years, 1 month ago by jam
Modified:
8 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, tfarina, jam, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fix the html select tag showing up at the wrong position. This was a regression from r166446. The fix is to watch for the top level aura::Window's movement. In Ash, this would be an aura::Window that is the parent of the WebContents. In desktop Aura, this would be the aura::RootWindow. The change watches for this in WebContentsViewAura, similar to how WebContentsViewWin does this with PositionChangedMessageFilter. The reason is that the parent being watched needs to be updated with tab drags, so it's more convenient to do this at WebContentsViewAura's parent, instead of doing it at the RenderWidgetHostViewAura level (since that would need a list of parents). This change also fixes OnHostMoved not being called on Windows. In the reland of this patch, I've also fixed WebContentsView implementations holding on to deleted RenderWidgetHostView objects after an interstitial is hidden. BUG=161174 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=168558 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=168767

Patch Set 1 : #

Patch Set 2 : nits #

Patch Set 3 : fix crash #

Total comments: 6

Patch Set 4 : reupload after revert #

Patch Set 5 : fix stale RWHV being used #

Patch Set 6 : fix win_rel #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -3 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/interstitial_page_impl.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 4 6 chunks +76 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_view_gtk.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_gtk.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_mac.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_mac.mm View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_win.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_win.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_view.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/test/test_web_contents_view.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_web_contents_view.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/root_window_host_win.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M ui/aura/root_window_host_win.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_win.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jam
8 years, 1 month ago (2012-11-17 01:58:44 UTC) #1
sky
LGTM https://codereview.chromium.org/11308083/diff/12011/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/11308083/diff/12011/content/browser/web_contents/web_contents_view_aura.cc#newcode241 content/browser/web_contents/web_contents_view_aura.cc:241: : view_(view), parent_(NULL) {} nit: each param on ...
8 years, 1 month ago (2012-11-19 15:04:54 UTC) #2
jam
https://codereview.chromium.org/11308083/diff/12011/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/11308083/diff/12011/content/browser/web_contents/web_contents_view_aura.cc#newcode241 content/browser/web_contents/web_contents_view_aura.cc:241: : view_(view), parent_(NULL) {} On 2012/11/19 15:04:54, sky wrote: ...
8 years, 1 month ago (2012-11-19 18:53:06 UTC) #3
sky
https://codereview.chromium.org/11308083/diff/12011/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/11308083/diff/12011/content/browser/web_contents/web_contents_view_aura.cc#newcode241 content/browser/web_contents/web_contents_view_aura.cc:241: : view_(view), parent_(NULL) {} On 2012/11/19 18:53:06, John Abd-El-Malek ...
8 years, 1 month ago (2012-11-19 22:45:23 UTC) #4
jam
Scott: ptal. I've fixed WebContentsView implementations holding on to deleted RenderWidgetHostView objects after an interstitial ...
8 years, 1 month ago (2012-11-20 01:08:01 UTC) #5
sky
8 years, 1 month ago (2012-11-20 03:23:23 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698