зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b7ef828313
Коммит
92b5a69c32
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче