Bug 1875194 - Fix vertical scrollbar size returned by GetDesiredScrollbarSizes()...
commit05d687e03817f3cd0324fe030e21f27355839b9e
authorTing-Yu Lin <tlin@mozilla.com>
Thu, 18 Jan 2024 01:39:24 +0000 (18 01:39 +0000)
committerTing-Yu Lin <tlin@mozilla.com>
Thu, 18 Jan 2024 01:39:24 +0000 (18 01:39 +0000)
tree3e093bbff96a434de82dd0a2ce4a412bba2cc864
parent168a4c4decb37b8d599f600f3df7f841a8803280
Bug 1875194 - Fix vertical scrollbar size returned by GetDesiredScrollbarSizes(). r=dholbert

When the scrollbar is on the right hand side, its size should be set in `right`
instead of in `left`.

This bug is not observable because all the callers are accessing the result
directly via `LeftRight()`, or they are transforming the result into a
`LogicalMargin` and access it via `IStartEnd()` or `BStartEnd()`. However, it is
still worth fixing for the future.

Differential Revision: https://phabricator.services.mozilla.com/D198907
layout/generic/nsGfxScrollFrame.cpp