Closed Bug 1667475 Opened 5 years ago Closed 5 years ago

Some displayport-related cleanups

Categories

(Core :: Panning and Zooming, task)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: botond, Assigned: botond)

References

Details

Attachments

(7 files)

No description provided.

The two existing uses were inconsistent in whether the margins
were relative to the visual viewport or the layout viewport.

We could fix this, but it turns out both uses are readily
refactored to not need the field, so this patch removes the
field.

It stopped being relative to mScrollOffset in bug 1519285, when that
patched change the value stored in mScrollOffset to be the visual
scroll offset even for the Layers copy of the metrics.

Depends on D91479

Adding leave-open keyword as there are more cleanups to come.

Keywords: leave-open
Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/600c18995b01 Remove FrameMetrics::mDisplayPortMargins. r=kats https://hg.mozilla.org/integration/autoland/rev/dddcc84c41b2 Document that FrameMetrics::mDisplayPort is relative to GetLayoutScrollOffset(). r=kats

It looks like these are unused as of bug 1629466.

Depends on D92006

The only caller passed in DisplayRelativeTo::ScrollFrame.

Removing this makes it easier to consolidate display port options
in a subsequent patch.

Depends on D92013

Keywords: leave-open
Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/76b8aecaab76 Moved displayport-related functions from nsLayoutUtils to a new DisplayPortUtils class. r=kats https://hg.mozilla.org/integration/autoland/rev/f841d162b2ad Remove no-longer-used 'aOutPainted' parameters. r=kats https://hg.mozilla.org/integration/autoland/rev/e9158f91bc3a Drop the 'aRelativeTo' parameter of GetDisplayPortForVisibilityTesting(). r=kats https://hg.mozilla.org/integration/autoland/rev/2c1a3257a08d Consolidate displayport-related flags into a DisplayPortOptions struct. r=kats https://hg.mozilla.org/integration/autoland/rev/ecfb6ab85b7a Move handling of DisplayportRelativeTo inside GetDisplayPortImpl(). r=kats
Depends on: 1687872
Regressions: 1687886
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: