OLD | NEW |
1 /** | 1 /** |
2 * This file is part of the theme implementation for form controls in WebCore. | 2 * This file is part of the theme implementation for form controls in WebCore. |
3 * | 3 * |
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 m_inactiveSelectionBackgroundColor = Color(); | 1080 m_inactiveSelectionBackgroundColor = Color(); |
1081 | 1081 |
1082 m_activeListBoxSelectionForegroundColor = Color(); | 1082 m_activeListBoxSelectionForegroundColor = Color(); |
1083 m_inactiveListBoxSelectionForegroundColor = Color(); | 1083 m_inactiveListBoxSelectionForegroundColor = Color(); |
1084 m_activeListBoxSelectionBackgroundColor = Color(); | 1084 m_activeListBoxSelectionBackgroundColor = Color(); |
1085 m_inactiveListBoxSelectionForegroundColor = Color(); | 1085 m_inactiveListBoxSelectionForegroundColor = Color(); |
1086 | 1086 |
1087 Page::scheduleForcedStyleRecalcForAllPages(); | 1087 Page::scheduleForcedStyleRecalcForAllPages(); |
1088 } | 1088 } |
1089 | 1089 |
1090 Color RenderTheme::systemColor(int cssValueId) const | 1090 Color RenderTheme::systemColor(CSSValueID cssValueId) const |
1091 { | 1091 { |
1092 switch (cssValueId) { | 1092 switch (cssValueId) { |
1093 case CSSValueActiveborder: | 1093 case CSSValueActiveborder: |
1094 return 0xFFFFFFFF; | 1094 return 0xFFFFFFFF; |
1095 case CSSValueActivecaption: | 1095 case CSSValueActivecaption: |
1096 return 0xFFCCCCCC; | 1096 return 0xFFCCCCCC; |
1097 case CSSValueAppworkspace: | 1097 case CSSValueAppworkspace: |
1098 return 0xFFFFFFFF; | 1098 return 0xFFFFFFFF; |
1099 case CSSValueBackground: | 1099 case CSSValueBackground: |
1100 return 0xFF6363CE; | 1100 return 0xFF6363CE; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 break; | 1153 break; |
1154 case CSSValueInternalActiveListBoxSelectionText: | 1154 case CSSValueInternalActiveListBoxSelectionText: |
1155 return activeListBoxSelectionForegroundColor(); | 1155 return activeListBoxSelectionForegroundColor(); |
1156 break; | 1156 break; |
1157 case CSSValueInternalInactiveListBoxSelection: | 1157 case CSSValueInternalInactiveListBoxSelection: |
1158 return inactiveListBoxSelectionBackgroundColor(); | 1158 return inactiveListBoxSelectionBackgroundColor(); |
1159 break; | 1159 break; |
1160 case CSSValueInternalInactiveListBoxSelectionText: | 1160 case CSSValueInternalInactiveListBoxSelectionText: |
1161 return inactiveListBoxSelectionForegroundColor(); | 1161 return inactiveListBoxSelectionForegroundColor(); |
1162 break; | 1162 break; |
| 1163 default: |
| 1164 break; |
1163 } | 1165 } |
1164 return Color(); | 1166 return Color(); |
1165 } | 1167 } |
1166 | 1168 |
1167 Color RenderTheme::platformActiveTextSearchHighlightColor() const | 1169 Color RenderTheme::platformActiveTextSearchHighlightColor() const |
1168 { | 1170 { |
1169 return Color(255, 150, 50); // Orange. | 1171 return Color(255, 150, 50); // Orange. |
1170 } | 1172 } |
1171 | 1173 |
1172 Color RenderTheme::platformInactiveTextSearchHighlightColor() const | 1174 Color RenderTheme::platformInactiveTextSearchHighlightColor() const |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 | 1387 |
1386 // padding - not honored by WinIE, needs to be removed. | 1388 // padding - not honored by WinIE, needs to be removed. |
1387 style->resetPadding(); | 1389 style->resetPadding(); |
1388 | 1390 |
1389 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) | 1391 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) |
1390 // for now, we will not honor it. | 1392 // for now, we will not honor it. |
1391 style->resetBorder(); | 1393 style->resetBorder(); |
1392 } | 1394 } |
1393 | 1395 |
1394 } // namespace WebCore | 1396 } // namespace WebCore |
OLD | NEW |