Closed Bug 360214 Opened 19 years ago Closed 19 years ago

cairo Mac OS X builds have broken select widget rendering

Categories

(Core :: Layout: Form Controls, defect)

PowerPC
macOS
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: jaas, Assigned: jaas)

References

Details

(Whiteboard: [blocking1.9a1+])

Attachments

(2 files)

Cairo Mac OS X builds have broken select widget rendering. The box on the right with the triangle is missing.
Attached image screenshot
*** Bug 360215 has been marked as a duplicate of this bug. ***
vlad? are we even doing native form controls?
Assignee: pavlov → joshmoz
Native form controls are turned off for now. We plan to do native form controls soon.
It looks like this never worked under cairo. I went pretty far back in nightly builds of cairo mac firefox and they're all broken this way.
Flags: blocking1.9?
Whiteboard: [blocking1.9a1+]
Attached patch fix v1.0Splinter Review
Layout uses the scrollbar width from the device context to determine how wide to make the select button. The thebes device context uses an nsLookAndFeel metric to determine scrollbar width instead of hardcoding a value like the mac device context does (we don't use the mac device context under cairo, we use thebes). The fix is to add the metric to our look and feel code on mac.
Attachment #245257 - Flags: superreview?(pavlov)
Attachment #245257 - Flags: review?(mark)
Comment on attachment 245257 [details] [diff] [review] fix v1.0 Prefer ::GetThemeMetric(kThemeMetricScrollBarWidth, &value)
Attachment #245257 - Flags: review?(mark) → review+
Attachment #245257 - Flags: superreview?(pavlov) → superreview+
The native metric function returns 15, we've always used 16. I'd prefer to leave it the way it has always been until we can audit to make sure things will match up. I will add a comment about it.
landed on trunk
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Flags: blocking1.9?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: