Bug 1073692 - Display each search suggestion row with the correct text direction on about:home/about:newtab. r=ehsan

This commit is contained in:
Drew Willcoxon 2014-10-11 19:07:52 -07:00
parent 48b37fddee
commit ca42e49a6e

View File

@ -301,6 +301,7 @@ SearchSuggestionUIController.prototype = {
_makeTableRow: function (type, suggestionStr, currentRow, searchWords) {
let row = document.createElementNS(HTML_NS, "tr");
row.dir = "auto";
row.classList.add("searchSuggestionRow");
row.classList.add(type);
row.setAttribute("role", "presentation");
@ -365,7 +366,6 @@ SearchSuggestionUIController.prototype = {
this._table = document.createElementNS(HTML_NS, "table");
this._table.id = id;
this._table.hidden = true;
this._table.dir = "auto";
this._table.classList.add("searchSuggestionTable");
this._table.setAttribute("role", "listbox");
return this._table;