-
tkent@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=38380 Reviewed by Adam Barth. WebCore: Because we have no ways to draw an NSStepperCell with its up button highlighted, use HIThemeDrawButton() instead. Test: platform/mac/fast/forms/input-appearance-spinbutton-up.html * platform/mac/ThemeMac.mm: (WebCore::controlSizeFromPixelSize): New function. Made from a part of setControlSize(). (WebCore::setControlSize): (WebCore::convertControlStatesToThemeDrawState): (WebCore::paintStepper): Use HITheme API instead of NSStepperCell. (WebCore::ThemeMac::inflateControlPaintRect): Use controlSizeFromPixelSize(). LayoutTests: * platform/mac/fast/forms/input-appearance-spinbutton-expected.checksum: * platform/mac/fast/forms/input-appearance-spinbutton-expected.png: * platform/mac/fast/forms/input-appearance-spinbutton-up-expected.checksum: Added. * platform/mac/fast/forms/input-appearance-spinbutton-up-expected.png: Added. * platform/mac/fast/forms/input-appearance-spinbutton-up-expected.txt: Added. * platform/mac/fast/forms/input-appearance-spinbutton-up.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
782db653