зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1619109 - Used toggle() method for toggling CSS class in Measuring Tool. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D64881 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
d97983b83c
Коммит
8fbb2b22ba
|
@ -745,9 +745,7 @@ MeasuringToolHighlighter.prototype = {
|
|||
// Changes the resizing cursors in case the measuring box is mirrored
|
||||
const isMirrored =
|
||||
(coords.w < 0 || coords.h < 0) && !(coords.w < 0 && coords.h < 0);
|
||||
this.getElement("tool").classList[isMirrored ? "add" : "remove"](
|
||||
"mirrored"
|
||||
);
|
||||
this.getElement("tool").classList.toggle("mirrored", isMirrored);
|
||||
|
||||
this.showLabel("size");
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче