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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 double tickRatio = isHorizontal && o->style()->isLeftToRightDirection()
? tickFraction : 1.0 - tickFraction; | 871 double tickRatio = isHorizontal && o->style()->isLeftToRightDirection()
? tickFraction : 1.0 - tickFraction; |
872 double tickPosition = round(tickRegionSideMargin + tickRegionWidth * tic
kRatio); | 872 double tickPosition = round(tickRegionSideMargin + tickRegionWidth * tic
kRatio); |
873 if (isHorizontal) | 873 if (isHorizontal) |
874 tickRect.setX(tickPosition); | 874 tickRect.setX(tickPosition); |
875 else | 875 else |
876 tickRect.setY(tickPosition); | 876 tickRect.setY(tickPosition); |
877 paintInfo.context->fillRect(tickRect, o->resolveColor(CSSPropertyColor))
; | 877 paintInfo.context->fillRect(tickRect, o->resolveColor(CSSPropertyColor))
; |
878 } | 878 } |
879 } | 879 } |
880 | 880 |
881 double LayoutTheme::animationRepeatIntervalForProgressBar(LayoutProgress*) const | 881 double LayoutTheme::animationRepeatIntervalForProgressBar() const |
882 { | 882 { |
883 return 0; | 883 return 0; |
884 } | 884 } |
885 | 885 |
886 double LayoutTheme::animationDurationForProgressBar(LayoutProgress*) const | 886 double LayoutTheme::animationDurationForProgressBar() const |
887 { | 887 { |
888 return 0; | 888 return 0; |
889 } | 889 } |
890 | 890 |
891 bool LayoutTheme::shouldHaveSpinButton(HTMLInputElement* inputElement) const | 891 bool LayoutTheme::shouldHaveSpinButton(HTMLInputElement* inputElement) const |
892 { | 892 { |
893 return inputElement->isSteppable() && inputElement->type() != InputTypeNames
::range; | 893 return inputElement->isSteppable() && inputElement->type() != InputTypeNames
::range; |
894 } | 894 } |
895 | 895 |
896 void LayoutTheme::adjustMenuListButtonStyle(LayoutStyle&, Element*) const | 896 void LayoutTheme::adjustMenuListButtonStyle(LayoutStyle&, Element*) const |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 | 1244 |
1245 // padding - not honored by WinIE, needs to be removed. | 1245 // padding - not honored by WinIE, needs to be removed. |
1246 style.resetPadding(); | 1246 style.resetPadding(); |
1247 | 1247 |
1248 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) | 1248 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) |
1249 // for now, we will not honor it. | 1249 // for now, we will not honor it. |
1250 style.resetBorder(); | 1250 style.resetBorder(); |
1251 } | 1251 } |
1252 | 1252 |
1253 } // namespace blink | 1253 } // namespace blink |
OLD | NEW |