Closed Bug 1813046 Opened 1 year ago Closed 1 year ago

Simplify scrollbar sizing code.

Categories

(Core :: Widget, task)

task

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

No description provided.

This removes the capability of having differently-sized vertical and
horizontal scrollbars (which is only potentially used in windows, and in
practice almost-never used). For that case, we choose the larger of
vertical/horizontal scrollbar sizes.

This is in order to be able to realistically expose the scrollbar size
to CSS, see blocked bug.

We make RecomputeScrollbarParams the central place where each scrollbar
style decides its sizes, and make GetDPIRatioForScrollbarPart handle the
cocoa special-case of scaling to 1 or 2, but nothing else.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cbd43288796e
Simplify scrollbar sizing code. r=spohl
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch

@emilio I happened to see this change https://hg.mozilla.org/integration/autoland/rev/cbd43288796e#l3.16 but it seems like it might be a bug to have removed the differentiation between setting aSize.width and aSize.height depending on whether it is a vertical or horizontal scrollbar. I don't know this code well, so I might be missing something.

Flags: needinfo?(emilio)

All themes support scrollbar parts nowadays so this code is not needed.

Thanks! Turns out that is a buggy part of the change, but that chunk of code is dead nowadays.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bb8b2fde280f
follow-up: Remove dead chunk of code. r=spohl

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: