Closed Bug 1168487 Opened 9 years ago Closed 9 years ago

SPC-SPS is wrong with HiDPI classic scrollbars

Categories

(Core :: Panning and Zooming, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: mstange, Assigned: kats)

References

()

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

Load the testcase from the URL field on a HiDPI screen with classic (non-overlay) scrollbars. The blue border should go around the whole box and be adjacent to the vertical page scrollbar.

With APZ, the right border hides under the scrollbar.

There is the comment about scrollbars having 1 CSS pixel = 1 device pixel somewhere, but that comment is just wrong. Scrollbars are subject to the UnscaledDevicePixelsPerCSSPixel scale, but not to page zoom.
Blocks: 1157746
Whiteboard: [gfx-noted]
The 1 CSS pixel = 1 device pixel thing happens at 3 of the 4 call sites to nsLayoutUtils::ScrollbarAreaToExcludeFromCompositionBoundsFor. I'm not sure if the 4th call site (which is nsLayoutUtils::CalculateCompositionSizeForFrame) also needs adjusting since it keeps everything in app units.
Blocks: all-aboard-apz
No longer blocks: 1157746
OS: Unspecified → Mac OS X
Hardware: Unspecified → All
This should be fixed by bug 1187792 but I don't have a HiDPI OS X device to test it on.
Depends on: 1187792
IIUC, it will be un-fixed if in the future we turn on pinch-zooming on OS X?
Yeah, so I think we should leave this bug open. But it no longer needs to block bug 1178298.
No longer blocks: all-aboard-apz
I'll make it block the wider apz-desktop bug though (at this point it's a catch-all for anything related to APZ on desktop).
Blocks: apz-desktop
After the patch on bug 1189837 I'm not sure if anything else needs to be done here.
Attached patch Patch (deleted) — Splinter Review
tn pointed out in bug 1189837 comment 11 that I missed one of the places, so this finishes it off.
Assignee: nobody → bugmail.mozilla
Attachment #8644350 - Flags: review?(tnikkel)
Attachment #8644350 - Flags: review?(tnikkel) → review+
https://hg.mozilla.org/mozilla-central/rev/384766aad27e
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: