Some cleanups to ComputeTransformForScrollThumb
Categories
(Core :: Panning and Zooming, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox90 | --- | fixed |
People
(Reporter: botond, Assigned: botond)
References
Details
Attachments
(6 files)
Bug 1708855 - Move the implementation of ComputeTransformForScrollThumb into its own file. r=tnikkel
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
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.
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
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
Assignee | ||
Comment 3•3 years ago
|
||
Depends on D114160
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D114161
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D114162
Assignee | ||
Comment 6•3 years ago
|
||
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
Comment 8•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/69211b49b74e
https://hg.mozilla.org/mozilla-central/rev/25d2c59827d5
https://hg.mozilla.org/mozilla-central/rev/6c0ee6dc6175
https://hg.mozilla.org/mozilla-central/rev/66761d87448d
https://hg.mozilla.org/mozilla-central/rev/f0133ba38ffc
https://hg.mozilla.org/mozilla-central/rev/d69918d6f325
Description
•