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

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

Issue 2043883002: mac: Delete some pre-OS X 10.9 code in blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build Created 4 years, 6 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 | « no previous file | third_party/WebKit/Source/core/paint/ThemePainterMac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 215df445964beb8547df90bbead6677dc5cd0151..0a194535aade2bf6639af72c7be47c7f581a87f1 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
@@ -238,9 +238,9 @@ void LayoutThemeMac::systemFont(CSSValueID systemFontID, FontStyle& fontStyle, F
bool LayoutThemeMac::needsHackForTextControlWithFontFamily(const AtomicString& family) const
{
- // This hack is only applied on OSX 10.9 and earlier.
+ // This hack is only applied on OSX 10.9.
// https://code.google.com/p/chromium/issues/detail?id=515989#c8
- return IsOSMavericksOrEarlier() && family == "BlinkMacSystemFont";
+ return IsOSMavericks() && family == "BlinkMacSystemFont";
}
static RGBA32 convertNSColorToColor(NSColor *color)
@@ -793,8 +793,6 @@ void LayoutThemeMac::setPopupButtonCellState(const LayoutObject& object, const I
updateCheckedState(popupButton, object);
updateEnabledState(popupButton, object);
updatePressedState(popupButton, object);
- if (ThemeMac::drawWithFrameDrawsFocusRing())
- updateFocusedState(popupButton, object);
}
const IntSize* LayoutThemeMac::menuListSizes() const
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/ThemePainterMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698