Bug 1748437: link from `LayoutUtils`'s `getElementBoundingScreenRect` documentation to a definition of "screen" coordinates. r=tnikkel

Differential Revision: https://phabricator.services.mozilla.com/D135045
This commit is contained in:
Mirko Brodesser 2022-01-05 09:13:36 +00:00
Родитель b7ef828313
Коммит 92b5a69c32
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -9,8 +9,8 @@ var EXPORTED_SYMBOLS = ["LayoutUtils"];
var LayoutUtils = {
/**
* For a given DOM element, returns its position in "screen"
* coordinates.
* For a given DOM element, returns its position in screen coordinates
* (<https://developer.mozilla.org/en-US/docs/Web/CSS/CSSOM_View/Coordinate_systems#screen>).
*/
getElementBoundingScreenRect(aElement) {
let rect = aElement.getBoundingClientRect();