summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_widget.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-13 22:13:04 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-13 22:13:04 +0000
commitb88ab037fc20ab5dfe0f35d71e78acc8499979a5 (patch)
tree7d0a9863885e4c70fe1a24f021a28da8a95a736b /chrome/renderer/render_widget.cc
parent5e26d9d482761e38a15f8cb987294d979bc58576 (diff)
downloadchromium_src-b88ab037fc20ab5dfe0f35d71e78acc8499979a5.zip
chromium_src-b88ab037fc20ab5dfe0f35d71e78acc8499979a5.tar.gz
chromium_src-b88ab037fc20ab5dfe0f35d71e78acc8499979a5.tar.bz2
Do right-alignment of popups when WebKit indicates to do so.
BUG=http://crbug.com/23106 TEST=as in bug Review URL: http://codereview.chromium.org/1992006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_widget.cc')
-rw-r--r--chrome/renderer/render_widget.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc
index d9fd8e7..395e87b 100644
--- a/chrome/renderer/render_widget.cc
+++ b/chrome/renderer/render_widget.cc
@@ -103,6 +103,7 @@ void RenderWidget::ConfigureAsExternalPopupMenu(const WebPopupMenuInfo& info) {
popup_params_->selected_item = info.selectedIndex;
for (size_t i = 0; i < info.items.size(); ++i)
popup_params_->popup_items.push_back(WebMenuItem(info.items[i]));
+ popup_params_->right_aligned = info.rightAligned;
}
void RenderWidget::Init(int32 opener_id) {