| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. | 2 * Copyright (C) 2007 Apple Inc. |
| 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 4 * Copyright (C) 2008 Collabora Ltd. | 4 * Copyright (C) 2008 Collabora Ltd. |
| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 | 127 |
| 128 String RenderThemeChromiumDefault::extraDefaultStyleSheet() | 128 String RenderThemeChromiumDefault::extraDefaultStyleSheet() |
| 129 { | 129 { |
| 130 // FIXME: We should not have OS() branches here. | 130 // FIXME: We should not have OS() branches here. |
| 131 // We should have something like RenderThemeWin, RenderThemeLinux, or | 131 // We should have something like RenderThemeWin, RenderThemeLinux, or |
| 132 // should concatenate UA stylesheets on build time. | 132 // should concatenate UA stylesheets on build time. |
| 133 #if !OS(WIN) | 133 #if !OS(WIN) |
| 134 return RenderThemeChromiumSkia::extraDefaultStyleSheet() + | 134 return RenderThemeChromiumSkia::extraDefaultStyleSheet() + |
| 135 #if !OS(ANDROID) | 135 #if !OS(ANDROID) |
| 136 String(themeInputMultipleFieldsUserAgentStyleSheet, sizeof(themeInputMul
tipleFieldsUserAgentStyleSheet)) + | 136 String(themeInputMultipleFieldsCss, sizeof(themeInputMultipleFieldsCss))
+ |
| 137 #endif | 137 #endif |
| 138 String(themeChromiumLinuxUserAgentStyleSheet, sizeof(themeChromiumLinuxU
serAgentStyleSheet)); | 138 String(themeChromiumLinuxCss, sizeof(themeChromiumLinuxCss)); |
| 139 #else | 139 #else |
| 140 return RenderThemeChromiumSkia::extraDefaultStyleSheet() + | 140 return RenderThemeChromiumSkia::extraDefaultStyleSheet() + |
| 141 String(themeInputMultipleFieldsUserAgentStyleSheet, sizeof(themeInputMul
tipleFieldsUserAgentStyleSheet)); | 141 String(themeInputMultipleFieldsCss, sizeof(themeInputMultipleFieldsCss))
; |
| 142 #endif | 142 #endif |
| 143 } | 143 } |
| 144 | 144 |
| 145 bool RenderThemeChromiumDefault::controlSupportsTints(const RenderObject* o) con
st | 145 bool RenderThemeChromiumDefault::controlSupportsTints(const RenderObject* o) con
st |
| 146 { | 146 { |
| 147 return isEnabled(o); | 147 return isEnabled(o); |
| 148 } | 148 } |
| 149 | 149 |
| 150 Color RenderThemeChromiumDefault::activeListBoxSelectionBackgroundColor() const | 150 Color RenderThemeChromiumDefault::activeListBoxSelectionBackgroundColor() const |
| 151 { | 151 { |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 if (useMockTheme()) { | 536 if (useMockTheme()) { |
| 537 // The mock theme can't handle zoomed controls, so we fall back to the "
fallback" theme. | 537 // The mock theme can't handle zoomed controls, so we fall back to the "
fallback" theme. |
| 538 ControlPart part = style->appearance(); | 538 ControlPart part = style->appearance(); |
| 539 if (part == CheckboxPart || part == RadioPart) | 539 if (part == CheckboxPart || part == RadioPart) |
| 540 return style->effectiveZoom() != 1; | 540 return style->effectiveZoom() != 1; |
| 541 } | 541 } |
| 542 return RenderTheme::shouldUseFallbackTheme(style); | 542 return RenderTheme::shouldUseFallbackTheme(style); |
| 543 } | 543 } |
| 544 | 544 |
| 545 } // namespace WebCore | 545 } // namespace WebCore |
| OLD | NEW |