Closed Bug 1744842 Opened 3 years ago Closed 3 years ago

Use vector instead of point to pass scroll __offset__ value to WebRender

Categories

(Core :: Graphics: WebRender, task)

task

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(2 files)

I am going to change scroll related APIs in bug 1571758, I realized that using vector would make things easier, thanks to this Glenn's comment

I am going to change wr_dp_define_scroll_layer and wr_transaction_scroll_layer to use vector in this bug. The latter will be changed again to pass multiple already-sampled scroll offsets in bug 1571758

This includes some other changes;

  1. Rename relevant functions
    scroll_node_with_id -> set_scroll_offset
    scroll_node -> set_scroll_offset
    set_scroll_origin -> set_scroll_offset
  2. Drop ScrollClamping argument
    In Gecko we didn't use ScrollClamping::ToContentBounds at all
  3. The order of arguments of scroll_node_with_id

Depends on D133144

Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9fd5635e49d2 Use LayoutVector2D instead of LayoutPoint to set scroll offset (the main-thread part). r=gw,botond https://hg.mozilla.org/integration/autoland/rev/eef9a8fd017b Use LayoutVector2D to set scroll offset (the off main-thread part). r=gw,botond
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: