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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutThemeMac.mm

Issue 2271653006: base::mac::IsOSSierra() -> base::mac::IsOS10_12(), etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Nits Created 4 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
Index: third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm b/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
index 318293ed309a4c514000cbbf58edc3feefe257f2..d8d2a531de30c4ad100c22393135aa514da8bfc6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
@@ -256,7 +256,7 @@ bool LayoutThemeMac::needsHackForTextControlWithFontFamily(const AtomicString& f
{
// This hack is only applied on OSX 10.9.
// https://code.google.com/p/chromium/issues/detail?id=515989#c8
- return IsOSMavericks() && family == "BlinkMacSystemFont";
+ return IsOS10_9() && family == "BlinkMacSystemFont";
}
static RGBA32 convertNSColorToColor(NSColor *color)
@@ -478,7 +478,7 @@ bool LayoutThemeMac::isControlStyled(const ComputedStyle& style) const
return true;
// NSPopUpButtonCell on macOS 10.9 doesn't support
// NSUserInterfaceLayoutDirectionRightToLeft.
- if (IsOSMavericks() && style.direction() == RTL)
+ if (IsOS10_9() && style.direction() == RTL)
return true;
}
// Some other cells don't work well when scaled.
« no previous file with comments | « sandbox/mac/pre_exec_delegate.cc ('k') | third_party/WebKit/Source/platform/fonts/mac/FontFamilyMatcherMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698