From 02d925b1c163544e597ecc543bf4b411d7a7b707 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 27 Feb 2009 22:07:59 +0330 Subject: [PATCH] Bug 477902 - [RTL] URLs are not left-to-right in the list pane of the Library; r=enndeakin --- browser/components/places/content/treeView.js | 4 ++++ toolkit/content/xul.css | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/browser/components/places/content/treeView.js b/browser/components/places/content/treeView.js index ef2122c355d0..3509fe17f66a 100644 --- a/browser/components/places/content/treeView.js +++ b/browser/components/places/content/treeView.js @@ -876,6 +876,10 @@ PlacesTreeView.prototype = { else var columnType = aColumn.id; + // Set the "ltr" property on url cells + if (columnType == "url") + aProperties.AppendElement(this._getAtomFor("ltr")); + if (columnType != "title") return; diff --git a/toolkit/content/xul.css b/toolkit/content/xul.css index 960ae57b8c41..28da27b04642 100644 --- a/toolkit/content/xul.css +++ b/toolkit/content/xul.css @@ -563,6 +563,10 @@ tree:not([treelines="true"]) > treechildren::-moz-tree-line { visibility: hidden; } +treechildren::-moz-tree-cell(ltr) { + direction: ltr !important; +} + /********** deck & stack *********/ deck {