WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
208063
[macOS] Use NSStepperCell when painting the spin button appearance
https://bugs.webkit.org/show_bug.cgi?id=208063
Summary
[macOS] Use NSStepperCell when painting the spin button appearance
Wenson Hsieh
Reported
2020-02-21 10:27:29 PST
ThemeMac.mm’s paintStepper() helper function has this comment from 2010: // We don't use NSStepperCell because there are no ways to draw an // NSStepperCell with the up button highlighted.
Attachments
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2020-02-21 10:29:53 PST
(In reply to Wenson Hsieh from
comment #0
)
> ThemeMac.mm’s paintStepper() helper function has this comment from 2010: > > // We don't use NSStepperCell because there are no ways to draw an > // NSStepperCell with the up button highlighted.
I wonder if we can just draw with the down button highlighted, but reflect it about the x-axis and translate by -height before drawing into the graphics context :|
Ahmad Saleem
Comment 2
2024-01-15 11:02:24 PST
https://searchfox.org/wubkat/rev/581e116dc6ce254811dbe2da9d1c1168762fc30c/Source/WebCore/platform/graphics/mac/controls/InnerSpinButtonMac.mm#63
We still have this comment above: "// We don't use NSStepperCell because there are no ways to draw an"
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug