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

Unified Diff: ui/views/controls/menu/menu_win.cc

Issue 24175004: Remove dependency on ui::ScaleFactor from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new usage of scale in FastShowPickler Created 7 years, 3 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 | « ui/views/controls/glow_hover_controller.cc ('k') | ui/views/controls/menu/native_menu_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_win.cc
diff --git a/ui/views/controls/menu/menu_win.cc b/ui/views/controls/menu/menu_win.cc
index ac08ec7fb5b36170ad8727df7f75b4665f042312..2e5a4dca739559aa8fcceb7cdbe128288f4acd90 100644
--- a/ui/views/controls/menu/menu_win.cc
+++ b/ui/views/controls/menu/menu_win.cc
@@ -183,8 +183,7 @@ class MenuHostWindow : public gfx::WindowImpl {
// Draw the icon after the label, otherwise it would be covered
// by the label.
- gfx::ImageSkiaRep icon_image_rep =
- data->icon.GetRepresentation(ui::SCALE_FACTOR_100P);
+ gfx::ImageSkiaRep icon_image_rep = data->icon.GetRepresentation(1.0f);
if (data->icon.width() != 0 && data->icon.height() != 0) {
gfx::Canvas canvas(icon_image_rep, false);
skia::DrawToNativeContext(
« no previous file with comments | « ui/views/controls/glow_hover_controller.cc ('k') | ui/views/controls/menu/native_menu_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698