OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Google, Inc. | 3 * Copyright (C) 2008, 2009 Google, Inc. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 return Color::white; | 209 return Color::white; |
210 } | 210 } |
211 | 211 |
212 Color RenderThemeChromiumMac::platformInactiveListBoxSelectionForegroundColor()
const | 212 Color RenderThemeChromiumMac::platformInactiveListBoxSelectionForegroundColor()
const |
213 { | 213 { |
214 return Color::black; | 214 return Color::black; |
215 } | 215 } |
216 | 216 |
217 Color RenderThemeChromiumMac::platformFocusRingColor() const | 217 Color RenderThemeChromiumMac::platformFocusRingColor() const |
218 { | 218 { |
| 219 static const RGBA32 oldAquaFocusRingColor = 0xFF7DADD9; |
219 if (usesTestModeFocusRingColor()) | 220 if (usesTestModeFocusRingColor()) |
220 return oldAquaFocusRingColor(); | 221 return oldAquaFocusRingColor; |
221 | 222 |
222 return systemColor(CSSValueWebkitFocusRingColor); | 223 return systemColor(CSSValueWebkitFocusRingColor); |
223 } | 224 } |
224 | 225 |
225 Color RenderThemeChromiumMac::platformInactiveListBoxSelectionBackgroundColor()
const | 226 Color RenderThemeChromiumMac::platformInactiveListBoxSelectionBackgroundColor()
const |
226 { | 227 { |
227 return platformInactiveSelectionBackgroundColor(); | 228 return platformInactiveSelectionBackgroundColor(); |
228 } | 229 } |
229 | 230 |
230 static FontWeight toFontWeight(NSInteger appKitFontWeight) | 231 static FontWeight toFontWeight(NSInteger appKitFontWeight) |
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1903 | 1904 |
1904 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const | 1905 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const |
1905 { | 1906 { |
1906 ControlPart part = style->appearance(); | 1907 ControlPart part = style->appearance(); |
1907 if (part == CheckboxPart || part == RadioPart) | 1908 if (part == CheckboxPart || part == RadioPart) |
1908 return style->effectiveZoom() != 1; | 1909 return style->effectiveZoom() != 1; |
1909 return false; | 1910 return false; |
1910 } | 1911 } |
1911 | 1912 |
1912 } // namespace WebCore | 1913 } // namespace WebCore |
OLD | NEW |