diff options
Diffstat (limited to 'chrome/renderer/render_widget.cc')
-rw-r--r-- | chrome/renderer/render_widget.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc index 23f27da..105ce11 100644 --- a/chrome/renderer/render_widget.cc +++ b/chrome/renderer/render_widget.cc @@ -313,7 +313,7 @@ void RenderWidget::PaintRect(const gfx::Rect& rect, // If there is a custom background, tile it. if (!background_.empty()) { canvas->save(); - + SkIRect clipRect = { rect.x(), rect.y(), rect.right(), rect.bottom() }; canvas->setClipRegion(SkRegion(clipRect)); @@ -589,8 +589,13 @@ void RenderWidget::ShowAsPopupWithItems(WebWidget* webwidget, int item_height, int selected_index, const std::vector<WebMenuItem>& items) { - // TODO(paulg): Implement this for Mac HTML select menus in Chromium, bug - // number: http://crbug.com/8389 + ViewHostMsg_ShowPopup_Params params; + params.bounds = bounds; + params.item_height = item_height; + params.selected_item = selected_index; + params.popup_items = items; + + Send(new ViewHostMsg_ShowPopup(routing_id_, params)); } void RenderWidget::Focus(WebWidget* webwidget) { |