Closed Bug 1708855 Opened 3 years ago Closed 3 years ago

Some cleanups to ComputeTransformForScrollThumb

Categories

(Core :: Panning and Zooming, task)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: botond, Assigned: botond)

References

Details

Attachments

(6 files)

In bug 1700169, I'm going to be extending our code for computing async transforms for scroll thumbs to also include a transform for overscrolling.

In preparation for that, I'd like to clean up that code a bit in a way that makes it easier to extend.

This allows us to factor out parts of the computation into their own
functions without having to pass too many things around as arguments.

Depends on D114159

It was duplicating the method GetAxisScale().

Pushed by bballo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/69211b49b74e
Move the implementation of ComputeTransformForScrollThumb into its own file. r=tnikkel
https://hg.mozilla.org/integration/autoland/rev/25d2c59827d5
Move the implementation of ComputeTransformForScrollThumb into an instance method of a class. r=tnikkel
https://hg.mozilla.org/integration/autoland/rev/6c0ee6dc6175
Give Axis a few more accessor methods. r=tnikkel
https://hg.mozilla.org/integration/autoland/rev/66761d87448d
Promote a few local variables in AsyncScrollThumbTransformer::ComputeTransform() to fields. r=tnikkel
https://hg.mozilla.org/integration/autoland/rev/f0133ba38ffc
Use Axis to avoid code repetition in AsyncScrollThumbTransformer. r=tnikkel
https://hg.mozilla.org/integration/autoland/rev/d69918d6f325
Remove Axis::GetScaleForAxis(). r=tnikkel
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: