OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the WebKit project. | 2 * This file is part of the WebKit project. |
3 * | 3 * |
4 * Copyright (C) 2006 Apple Computer, Inc. | 4 * Copyright (C) 2006 Apple Computer, Inc. |
5 * Copyright (C) 2008, 2009 Google, Inc. | 5 * Copyright (C) 2008, 2009 Google, Inc. |
6 * Copyright (C) 2009 Kenneth Rohde Christiansen | 6 * Copyright (C) 2009 Kenneth Rohde Christiansen |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 case CSSValueThreedhighlight: return COLOR_3DHIGHLIGHT; | 247 case CSSValueThreedhighlight: return COLOR_3DHIGHLIGHT; |
248 case CSSValueThreedlightshadow: return COLOR_3DLIGHT; | 248 case CSSValueThreedlightshadow: return COLOR_3DLIGHT; |
249 case CSSValueThreedshadow: return COLOR_3DSHADOW; | 249 case CSSValueThreedshadow: return COLOR_3DSHADOW; |
250 case CSSValueWindow: return COLOR_WINDOW; | 250 case CSSValueWindow: return COLOR_WINDOW; |
251 case CSSValueWindowframe: return COLOR_WINDOWFRAME; | 251 case CSSValueWindowframe: return COLOR_WINDOWFRAME; |
252 case CSSValueWindowtext: return COLOR_WINDOWTEXT; | 252 case CSSValueWindowtext: return COLOR_WINDOWTEXT; |
253 default: return -1; // Unsupported CSSValue | 253 default: return -1; // Unsupported CSSValue |
254 } | 254 } |
255 } | 255 } |
256 | 256 |
257 Color RenderThemeChromiumWin::systemColor(int cssValueId) const | 257 Color RenderThemeChromiumWin::systemColor(CSSValueID cssValueId) const |
258 { | 258 { |
259 int sysColorIndex = cssValueIdToSysColorIndex(cssValueId); | 259 int sysColorIndex = cssValueIdToSysColorIndex(cssValueId); |
260 if (isRunningLayoutTest() || (sysColorIndex == -1)) | 260 if (isRunningLayoutTest() || (sysColorIndex == -1)) |
261 return RenderTheme::systemColor(cssValueId); | 261 return RenderTheme::systemColor(cssValueId); |
262 | 262 |
263 COLORREF color = GetSysColor(sysColorIndex); | 263 COLORREF color = GetSysColor(sysColorIndex); |
264 return Color(GetRValue(color), GetGValue(color), GetBValue(color)); | 264 return Color(GetRValue(color), GetGValue(color), GetBValue(color)); |
265 } | 265 } |
266 | 266 |
267 IntSize RenderThemeChromiumWin::sliderTickSize() const | 267 IntSize RenderThemeChromiumWin::sliderTickSize() const |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 | 656 |
657 bool RenderThemeChromiumWin::shouldUseFallbackTheme(RenderStyle* style) const | 657 bool RenderThemeChromiumWin::shouldUseFallbackTheme(RenderStyle* style) const |
658 { | 658 { |
659 ControlPart part = style->appearance(); | 659 ControlPart part = style->appearance(); |
660 if (part == CheckboxPart || part == RadioPart) | 660 if (part == CheckboxPart || part == RadioPart) |
661 return style->effectiveZoom() != 1; | 661 return style->effectiveZoom() != 1; |
662 return false; | 662 return false; |
663 } | 663 } |
664 | 664 |
665 } // namespace WebCore | 665 } // namespace WebCore |
OLD | NEW |