Commit e0f049bb authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez
Browse files

Bug 1718384 - Don't unnecessarily use viewport units in #fullscreen-and-pointerlock-wrapper. r=Gijs

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).

Differential Revision: https://phabricator.services.mozilla.com/D118879
parent f19ea977
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -915,8 +915,8 @@ menupopup[emptyplacesresult="true"] > .hide-if-empty-places-result {
#fullscreen-and-pointerlock-wrapper {
  position: fixed;
  z-index: 2147483647 !important;
  width: 100vw;
  height: 100vh;
  width: 100%;
  height: 100%;
  top: 0;
  pointer-events: none;
}