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

Unified Diff: ui/base/layout_mac.mm

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/base/layout.cc ('k') | ui/base/layout_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/layout_mac.mm
diff --git a/ui/base/layout_mac.mm b/ui/base/layout_mac.mm
index f1a635dfbb03e76efbdeeef09eb1b28c1884d66f..6e50de14f8d4f0fa5bfa42641335c94eca2d0c1c 100644
--- a/ui/base/layout_mac.mm
+++ b/ui/base/layout_mac.mm
@@ -32,7 +32,7 @@ float GetScaleFactorScaleForNativeView(gfx::NativeView view) {
namespace ui {
ScaleFactor GetScaleFactorForNativeView(gfx::NativeView view) {
- return GetScaleFactorFromScale(GetScaleFactorScaleForNativeView(view));
+ return GetSupportedScaleFactor(GetScaleFactorScaleForNativeView(view));
}
} // namespace ui
« no previous file with comments | « ui/base/layout.cc ('k') | ui/base/layout_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698