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

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

Issue 1284993004: 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: 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..fdafd44713d5ab3ac2fffc4c4e4ba9754b101c1c 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,9 @@ bool IsOSMavericks()
return floor(NSAppKitVersionNumber) == NSAppKitVersionNumber10_9;
}
+bool IsOSYosemiteOrEarlier()
erikchen 2015/08/15 01:31:57 Ideally, I would make a function called IsOSElCapi
+{
+ 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