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

Issue 9489003: aura: Fix popup window positioning. (Closed)

Created:
8 years, 9 months ago by yoshiki
Modified:
8 years, 9 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, tfarina
Visibility:
Public.

Description

aura: Fix popup window positioning. RenderWidgetHostViewAura::SetBounds() is called from RenderWidgetHostViewAura::InitAsChild() with |popup_parent_host_view_|'s coordinates. But it's called from Webkit directly with root window coordinates. When popup window is repositioned (for example, when the number of auto-complete list is changed), SetBounds() is called directly and the window moves in the wrong place. BUG=115063 TEST=Checks auto-complete list and dropdown menu of combobox are placed in the correct position, and pass trybots Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124384

Patch Set 1 #

Patch Set 2 : remove unnesessary condition #

Total comments: 3

Patch Set 3 : review fix #

Total comments: 2

Patch Set 4 : review fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -22 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 2 chunks +2 lines, -22 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
yoshiki
detat, sadrul: Could you take a look? Because you had changed around the code modified ...
8 years, 9 months ago (2012-02-28 09:09:17 UTC) #1
Daniel Erat
lgtm http://codereview.chromium.org/9489003/diff/4002/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/9489003/diff/4002/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode177 content/browser/renderer_host/render_widget_host_view_aura.cc:177: SetBounds(gfx::Rect(pos.origin(), pos.size())); why are you creating a new ...
8 years, 9 months ago (2012-02-28 17:41:03 UTC) #2
tfarina
http://codereview.chromium.org/9489003/diff/4002/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/9489003/diff/4002/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode177 content/browser/renderer_host/render_widget_host_view_aura.cc:177: SetBounds(gfx::Rect(pos.origin(), pos.size())); if |pos| is-a gfx::Rect, why are you ...
8 years, 9 months ago (2012-02-28 18:08:30 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/9489003/9001
8 years, 9 months ago (2012-02-29 08:37:03 UTC) #4
commit-bot: I haz the power
Presubmit check for 9489003-9001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-02-29 08:37:05 UTC) #5
yoshiki
Thank you for review! Will commit it. https://chromiumcodereview.appspot.com/9489003/diff/4002/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://chromiumcodereview.appspot.com/9489003/diff/4002/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode177 content/browser/renderer_host/render_widget_host_view_aura.cc:177: SetBounds(gfx::Rect(pos.origin(), pos.size())); ...
8 years, 9 months ago (2012-02-29 08:37:28 UTC) #6
yoshiki
ben: Could you take a look and give an approval?
8 years, 9 months ago (2012-02-29 08:43:04 UTC) #7
Ben Goodger (Google)
lgtm
8 years, 9 months ago (2012-02-29 16:25:36 UTC) #8
tfarina
https://chromiumcodereview.appspot.com/9489003/diff/9001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://chromiumcodereview.appspot.com/9489003/diff/9001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode210 content/browser/renderer_host/render_widget_host_view_aura.cc:210: window_->SetBounds(adjusted_rect); nit: you don't need the temp here too. ...
8 years, 9 months ago (2012-02-29 16:35:59 UTC) #9
yoshiki
ben, tfarina: thanks! http://codereview.chromium.org/9489003/diff/9001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/9489003/diff/9001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode210 content/browser/renderer_host/render_widget_host_view_aura.cc:210: window_->SetBounds(adjusted_rect); On 2012/02/29 16:35:59, tfarina wrote: ...
8 years, 9 months ago (2012-03-01 03:05:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/9489003/14001
8 years, 9 months ago (2012-03-01 03:05:19 UTC) #11
commit-bot: I haz the power
8 years, 9 months ago (2012-03-01 07:52:35 UTC) #12
Change committed as 124384

Powered by Google App Engine
This is Rietveld 408576698