remove IsScrollingActive check in nsDisplayListBuilder::IsAnimatedGeometryRoot
Categories
(Core :: Web Painting, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: tnikkel, Assigned: tnikkel)
Details
Attachments
(1 file)
Assignee | ||
Comment 1•3 years ago
|
||
This only changes the return value in the case that IsScrollingActive is false but IsMaybeAsynchronouslyScrolled is true. This is an impossible case. If IsScrollingActive is false then the scrollframe can't be IsAlwaysActive, which is only true for root content documents. Also if IsScrollingActive is false then HasScrollGrab and HasDisplayPort are both false.
If IsMaybeAsynchronouslyScrolled is true then either HasDisplayPort, HasScrollGrab, or mZoomableByAPZ must be true. The first two are already ruled out. mZoomableByAPZ is only true on root content documents, so that too is ruled out.
In general we want to move away from IsScrollingActive for async scrolling things. There are only a few callers left, probably only one of them actually wants the concept that IsScrollingActive uses. Once we've removed the other users we can rename it to something like "HasBeenScrolledRecently" or something like that to avoid confusing with active scrolled roots and the use of the word active to mean async scrolling type things.
Updated•3 years ago
|
Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ffa60d8faa5b Remove IsScrollingActive check in nsDisplayListBuilder::IsAnimatedGeometryRoot. r=mattwoodrow
Comment 3•3 years ago
|
||
bugherder |
Description
•