Closed Bug 121440 Opened 23 years ago Closed 22 years ago

Mac OS X native theme scrollbar arrows not painted correctly

Categories

(SeaMonkey :: Themes, defect, P1)

PowerPC
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.0

People

(Reporter: adamlock, Assigned: mikepinkerton)

References

Details

(Keywords: topembed+)

Attachments

(1 file, 1 obsolete file)

Observed on Mac OS X with a trunk pull & build from 23 Jan:

1. Set the theme to classic so native style scrollbars are rendered.
2. Load a URL into the browser and shrink the window until horizontal and
vertical scrollbars are visible.
3. Scroll the image by clicking on the up/down arrows on the vertical scrollbar
and the left/right arrows on the horizontal one. 

Result:

Arrows are not correctly highlighted when depressed. The only one that is
highlighted is the down arrow and that sometimes renders a a pixel off from
where it should be causing a jiggling effect. Same behaviour is observed whether
the system prefs are set so that arrows are rendered at either end of the bar or
 grouped together.
-> Themes
Assignee: jaggernaut → hewitt
Component: XP Toolkit/Widgets → Themes
QA Contact: jrgm → pmac
yeah yeah i know.

hyatt, the current scheme for scrollbars just isn't going to work on mac since
we can only draw the entire bar. we're gonna have to come up with something like
a single frame with no anon content.
Assignee: hewitt → pinkerton
Priority: -- → P2
Target Milestone: --- → mozilla0.9.9
The APIs say there is a DrawThemeScrollBarArrows function for this purpose. I
noticed a comment in nsNativeThemeMac that says this is a no-op - is that really
true?
yes, it is really true. I asked apple. DrawThemeScrollBarArrows is a no-op in aqua.
Target Milestone: mozilla0.9.9 → mozilla1.0
Keywords: topembed
this will go away as part of the rewrite for 115758
Depends on: 115758
Priority: P2 → P5
Attached patch use native scrollbars instead (obsolete) — Splinter Review
this patch guts xbl scrollbars in classic and replaces them with native ones,
specified via XBL. the mechanism to do native scrollbars from within the gfx
scrollview is XP, but currently only implemented on macos.

needing r/sr.
smfr wanted to be cc'd. also could use the sr.
Status: NEW → ASSIGNED
Priority: P5 → P1
i forgot most of the makefile changes in the first patch. also detabbed a
couple files and switched from NPL to MPL on new files.
Attachment #76078 - Attachment is obsolete: true
Comment on attachment 76102 [details] [diff] [review]
updated patch with all the files

r=sdagley
Attachment #76102 - Flags: review+
Comment on attachment 76102 [details] [diff] [review]
updated patch with all the files

Nit, don't introduce a new mRefCnt field in nsNativeScrollbar if you can help
it.
sr=beard
Attachment #76102 - Flags: superreview+
Comment on attachment 76102 [details] [diff] [review]
updated patch with all the files

Nit, don't introduce a new mRefCnt field in nsNativeScrollbar if you can help
it.
sr=beard
Attachment #76102 - Flags: approval+
yay! fixed
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: