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

Unified Diff: Source/platform/mac/VersionUtilMac.mm

Issue 1289823008: Reland #1: Add a short term solution to fix OSX 10.11 system font rendering problems. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix Yosemite test. Created 5 years, 4 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 | « Source/platform/mac/VersionUtilMac.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mac/VersionUtilMac.mm
diff --git a/Source/platform/mac/VersionUtilMac.mm b/Source/platform/mac/VersionUtilMac.mm
index 29e22f995fbad849512194e6dae6a454c6b8e8e5..4e483b7270d35d13a8b1bf24727228762715496f 100644
--- a/Source/platform/mac/VersionUtilMac.mm
+++ b/Source/platform/mac/VersionUtilMac.mm
@@ -11,6 +11,10 @@
#define NSAppKitVersionNumber10_9 1265
#endif
+#ifndef NSAppKitVersionNumber10_10
+#define NSAppKitVersionNumber10_10 1343
+#endif
+
namespace blink {
bool IsOSMavericksOrEarlier()
@@ -23,4 +27,14 @@ bool IsOSMavericks()
return floor(NSAppKitVersionNumber) == NSAppKitVersionNumber10_9;
}
+bool IsOSYosemiteOrEarlier()
+{
+ return floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_10;
+}
+
+bool IsOSYosemite()
+{
+ return floor(NSAppKitVersionNumber) == NSAppKitVersionNumber10_10;
+}
+
} // namespace blink
« no previous file with comments | « Source/platform/mac/VersionUtilMac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698