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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 } | 205 } |
206 | 206 |
207 // Call the appropriate style adjustment method based off the appearance val
ue. | 207 // Call the appropriate style adjustment method based off the appearance val
ue. |
208 switch (style.appearance()) { | 208 switch (style.appearance()) { |
209 case MenulistPart: | 209 case MenulistPart: |
210 return adjustMenuListStyle(style, e); | 210 return adjustMenuListStyle(style, e); |
211 case MenulistButtonPart: | 211 case MenulistButtonPart: |
212 return adjustMenuListButtonStyle(style, e); | 212 return adjustMenuListButtonStyle(style, e); |
213 case SliderHorizontalPart: | 213 case SliderHorizontalPart: |
214 case SliderVerticalPart: | 214 case SliderVerticalPart: |
215 case MediaFullScreenVolumeSliderPart: | 215 case MediaFullscreenVolumeSliderPart: |
216 case MediaSliderPart: | 216 case MediaSliderPart: |
217 case MediaVolumeSliderPart: | 217 case MediaVolumeSliderPart: |
218 return adjustSliderContainerStyle(style, e); | 218 return adjustSliderContainerStyle(style, e); |
219 case SliderThumbHorizontalPart: | 219 case SliderThumbHorizontalPart: |
220 case SliderThumbVerticalPart: | 220 case SliderThumbVerticalPart: |
221 return adjustSliderThumbStyle(style); | 221 return adjustSliderThumbStyle(style); |
222 case SearchFieldPart: | 222 case SearchFieldPart: |
223 return adjustSearchFieldStyle(style); | 223 return adjustSearchFieldStyle(style); |
224 case SearchFieldCancelButtonPart: | 224 case SearchFieldCancelButtonPart: |
225 return adjustSearchFieldCancelButtonStyle(style); | 225 return adjustSearchFieldCancelButtonStyle(style); |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 | 933 |
934 // padding - not honored by WinIE, needs to be removed. | 934 // padding - not honored by WinIE, needs to be removed. |
935 style.resetPadding(); | 935 style.resetPadding(); |
936 | 936 |
937 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) | 937 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) |
938 // for now, we will not honor it. | 938 // for now, we will not honor it. |
939 style.resetBorder(); | 939 style.resetBorder(); |
940 } | 940 } |
941 | 941 |
942 } // namespace blink | 942 } // namespace blink |
OLD | NEW |