Closed Bug 1629521 Opened 5 years ago Closed 5 years ago

Make dynamic-toolbar-sticky-??.html tests pass on desktop

Categories

(Core :: Graphics: WebRender, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: kats, Assigned: kats)

References

Details

Attachments

(2 files)

In bug 1628484 I'm adding a bunch of position:sticky tests. While the tests are mostly intended to exercise various dynamic toolbar cases, they also exercise previously-unexercised codepaths even without the dynamic toolbar. There are a number of failures with WR enabled. This bug will fix those non-dynamic-toolbar cases.

The sticky info emitted by Gecko to WR wasn't quite correct in some cases
where sticky items had both top and bottom sticky ranges. This corrects
the info emitted by Gecko. This change makes a few of the failing tests
pass, but also makes one fail. That one failure was previously passing due
to two bugs canceling each other out, and is fixed up in the next patch.

The WR code that computed the sticky_offset didn't properly combine the offsets
from the top- and bottom- sticky calculations if an item had both. This patch
fixes the calculation, which makes the remaining test failure (in the
configuration without any dynamic toolbar) pass.

Depends on D70679

Pushed by kgupta@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/45a80338f459 Improve behaviour when items have both top and bottom sticky ranges. r=kvark https://hg.mozilla.org/integration/autoland/rev/2c065921de09 Fix WR handling of items with both top and bottom sticky ranges. r=kvark
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: