Index: chrome/browser/ui/views/autofill/autofill_popup_view_views.cc |
diff --git a/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc b/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc |
index 818112c82f15c7d980dd906fc93bde63ec8dd33d..c9436367fea3e64a3fdc8176a7851cc6c9677cf6 100644 |
--- a/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc |
+++ b/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc |
@@ -14,6 +14,7 @@ |
#include "ui/gfx/native_widget_types.h" |
#include "ui/gfx/point.h" |
#include "ui/gfx/rect.h" |
+#include "ui/gfx/rect_conversions.h" |
#include "ui/gfx/screen.h" |
#include "ui/views/border.h" |
#include "ui/views/event_utils.h" |
@@ -72,7 +73,7 @@ void AutofillPopupViewViews::OnPaint(gfx::Canvas* canvas) { |
OnPaintBorder(canvas); |
for (size_t i = 0; i < controller_->names().size(); ++i) { |
- gfx::Rect line_rect = controller_->GetRowBounds(i); |
+ gfx::Rect line_rect = gfx::ToEnclosingRect(controller_->GetRowBounds(i)); |
if (controller_->identifiers()[i] == |
WebAutofillClient::MenuItemIDSeparator) { |
@@ -194,11 +195,11 @@ void AutofillPopupViewViews::Show() { |
} |
void AutofillPopupViewViews::InvalidateRow(size_t row) { |
- SchedulePaintInRect(controller_->GetRowBounds(row)); |
+ SchedulePaintInRect(gfx::ToEnclosingRect(controller_->GetRowBounds(row))); |
} |
void AutofillPopupViewViews::UpdateBoundsAndRedrawPopup() { |
- GetWidget()->SetBounds(controller_->popup_bounds()); |
+ GetWidget()->SetBounds(gfx::ToEnclosingRect(controller_->popup_bounds())); |
SchedulePaint(); |
} |