Bug 1488938 - Migrate two more nextSibling/previousSibling callers to use element variation;r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D5184

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brian Grinstead 2018-09-07 15:31:35 +00:00
Родитель 77622e05aa
Коммит 2f2baff3ce
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -283,7 +283,7 @@ AreaPositionManager.prototype = {
_getVisibleSiblingForDirection(aNode, aDirection) {
let rv = aNode;
do {
rv = rv[aDirection + "Sibling"];
rv = rv[aDirection + "ElementSibling"];
} while (rv && rv.getAttribute("hidden") == "true");
return rv;
},

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

@ -278,7 +278,7 @@
<body>
<![CDATA[
var startTab = this.selectedItem;
var next = startTab[aDir == -1 ? "previousSibling" : "nextSibling"];
var next = startTab[(aDir == -1 ? "previous" : "next") + "ElementSibling"];
if (!next && aWrap) {
next = aDir == -1 ? this.children[this.children.length - 1] :
this.children[0];