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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_layout_model.cc

Issue 2658123003: Fix missing borders on Autofill popups on Windows High DPI (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/autofill_popup_layout_model.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_layout_model.cc b/chrome/browser/ui/autofill/autofill_popup_layout_model.cc
index b985edd7c252a3c016d129c70c5dead838affbe7..758de17f252c90de7d84e8c891411387049916cb 100644
--- a/chrome/browser/ui/autofill/autofill_popup_layout_model.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_layout_model.cc
@@ -273,7 +273,7 @@ int AutofillPopupLayoutModel::GetIconResourceID(
}
const gfx::Rect AutofillPopupLayoutModel::RoundedElementBounds() const {
- return gfx::ToEnclosingRect(delegate_->element_bounds());
+ return gfx::ToNearestRect(delegate_->element_bounds());
}
bool AutofillPopupLayoutModel::IsPopupLayoutExperimentEnabled() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698