(Components.utils.import("resource://gre/modules/AppConstants.jsm", {})).AppConstants; document.getAnonymousElementByAttribute(this, "class", "menupopup-drop-indicator-bar"); document.getAnonymousElementByAttribute(this, "class", "popup-internal-box"); PlacesUIUtils.getViewForNode(this); elt.boxObject.screenY + elt.boxObject.height / 2) elt = elt.nextSibling; newMarginTop = elt ? elt.boxObject.screenY - sbo.screenY : sbo.height; } else if (scrollDir == 1) newMarginTop = sbo.height; // Set the new marginTop based on arrowscrollbox. newMarginTop += sbo.y - this._scrollBox.boxObject.y; this._indicatorBar.firstChild.style.marginTop = newMarginTop + "px"; this._indicatorBar.hidden = false; event.preventDefault(); event.stopPropagation(); ]]> 0) { arrowbox.pack = "end"; } else { arrowbox.pack = "start"; } arrowbox.style.transform = "translate(0, " + -offset + "px)"; // The assigned side stays the same regardless of direction. var isRTL = (window.getComputedStyle(this).direction == "rtl"); if (position.indexOf("start_") == 0) { container.dir = "reverse"; this.setAttribute("side", isRTL ? "left" : "right"); } else { container.dir = ""; this.setAttribute("side", isRTL ? "right" : "left"); } } else if (position.indexOf("before_") == 0 || position.indexOf("after_") == 0) { container.orient = ""; arrowbox.orient = ""; if (position.indexOf("_end") > 0) { arrowbox.pack = "end"; } else { arrowbox.pack = "start"; } arrowbox.style.transform = "translate(" + -offset + "px, 0)"; if (position.indexOf("before_") == 0) { container.dir = "reverse"; this.setAttribute("side", "bottom"); } else { container.dir = ""; this.setAttribute("side", "top"); } } arrow.hidden = false; ]]> 0; this.setAttribute("disablepointereventsfortransition", disablePointerEvents); } else { disablePointerEvents = this.getAttribute("disablepointereventsfortransition") == "true"; } if (!disablePointerEvents) { this.style.removeProperty("pointer-events"); } ]]>