From 76bdc5a4935b8851aa9e0ab8a8612ce9a34e66e1 Mon Sep 17 00:00:00 2001 From: Joe Walker Date: Fri, 1 Jun 2012 08:24:19 +0100 Subject: [PATCH] Bug 744982 - Decide whether GCLI in the global toolbar should be fixed direction:ltr or not; r=robcee,ehsan --- browser/devtools/commandline/gcli.jsm | 2 +- browser/devtools/shared/DeveloperToolbar.jsm | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/browser/devtools/commandline/gcli.jsm b/browser/devtools/commandline/gcli.jsm index 22c483f27b4..702e15d1046 100644 --- a/browser/devtools/commandline/gcli.jsm +++ b/browser/devtools/commandline/gcli.jsm @@ -8082,7 +8082,7 @@ define("text!gcli/commands/help_list.html", [], "\n" + " \n" + " ${command.name}\n" + - " →\n" + + " -\n" + " \n" + " ${command.description}\n" + " help ${command.name}\n" + diff --git a/browser/devtools/shared/DeveloperToolbar.jsm b/browser/devtools/shared/DeveloperToolbar.jsm index c60c5ca32e6..7a9858a7700 100644 --- a/browser/devtools/shared/DeveloperToolbar.jsm +++ b/browser/devtools/shared/DeveloperToolbar.jsm @@ -327,6 +327,10 @@ OutputPanel.prototype._onload = function OP_onload() this._div.classList.add('gcli-row-out'); this._div.setAttribute('aria-live', 'assertive'); + let styles = this._toolbar.ownerDocument.defaultView + .getComputedStyle(this._toolbar); + this._div.setAttribute("dir", styles.direction); + this.loaded = true; if (this._loadCallback) { this._loadCallback(); @@ -501,6 +505,10 @@ TooltipPanel.prototype._onload = function TP_onload() this.hintElement = this.document.getElementById("gcli-tooltip-root"); this._connector = this.document.getElementById("gcli-tooltip-connector"); + let styles = this._toolbar.ownerDocument.defaultView + .getComputedStyle(this._toolbar); + this.hintElement.setAttribute("dir", styles.direction); + this.loaded = true; if (this._loadCallback) {