Closed Bug 1718384 Opened 4 years ago Closed 4 years ago

Don't use viewport units in #fullscreen-and-pointerlock-wrapper

Categories

(Firefox :: General, task)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1718337 +++

This is the only usage of viewport units in the whole browser window and we could live without it trivially. It avoids otherwise-unnecessary style invalidation.

In the cloned bug I've improved the style system so that we do a lot less work, but we still need to do a full DOM walk.

Instead let's use percentages, which only need re-layout, not restyle (viewport units compute to a pixel value, percentages compute to themselves).

Component: CSS Parsing and Computation → General
Product: Core → Firefox

This is the only usage of viewport units in the whole browser window and
we could live without it trivially. It avoids otherwise-unnecessary
style invalidation.

In the cloned bug I've improved the style system so that we do a lot
less work, but we still need to do a full DOM walk.

Instead let's use percentages, which only need re-layout, not restyle
(viewport units compute to a pixel value, percentages compute to
themselves).

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9a34111fd0f4 Don't unnecessarily use viewport units in #fullscreen-and-pointerlock-wrapper. r=Gijs
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch

== Change summary for alert #30513 (as of Wed, 07 Jul 2021 05:45:29 GMT) ==

Improvements:

Ratio Suite Test Platform Options Absolute values (old vs new)
28% tresize windows10-64-shippable-qr e10s stylo webrender 8.72 -> 6.25
28% tresize macosx1014-64-shippable-qr e10s stylo webrender 8.95 -> 6.43
28% tresize macosx1014-64-shippable-qr e10s stylo webrender-sw 9.24 -> 6.66
27% tresize macosx1015-64-shippable-qr e10s stylo webrender 6.84 -> 5.01
27% tresize macosx1015-64-shippable-qr e10s stylo webrender-sw 7.10 -> 5.21
... ... ... ... ... ...
16% tresize linux1804-64-shippable-qr e10s stylo webrender 21.53 -> 18.07

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=30513

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: