mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
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:
parent
77622e05aa
commit
2f2baff3ce
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user