Closed Bug 1671217 Opened 4 years ago Closed 4 years ago

MobileViewportManager never sets mIsFirstPaint to false when in VisualViewportOnly mode

Categories

(Core :: Panning and Zooming, task)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: kats, Assigned: kats)

Details

Attachments

(1 file, 1 obsolete file)

Here is where MobileViewportManager::mIsFirstPaint gets set to false, but that never runs on desktop because of this early exit.

This is more of a perf problem than a correctness problem, AFAICT. It means we end up doing a bunch of work that we don't need to.

Easy to fix, but sadly makes writing a test for bug 1669982 harder because we won't call UpdateDisplayPortMargins as much.

Assignee: nobody → kats

There should be no user-visible correctness change here, just doing less
unnecessary work.

There should be no user-visible correctness change here, just doing less
unnecessary work.

Attachment #9181603 - Attachment is obsolete: true
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/950fb95c5769
Ensure we clear mIsFirstPaint in the visual-viewport-only MVM case. r=tnikkel
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: