Closed Bug 1735511 Opened 3 years ago Closed 3 years ago

remove IsScrollingActive check in nsDisplayListBuilder::IsAnimatedGeometryRoot

Categories

(Core :: Web Painting, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

Details

Attachments

(1 file)

No description provided.

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.

Assignee: nobody → tnikkel
Status: NEW → ASSIGNED
Pushed by tnikkel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ffa60d8faa5b
Remove IsScrollingActive check in nsDisplayListBuilder::IsAnimatedGeometryRoot. r=mattwoodrow
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: