From 3107d490dbad1e171808aab2e7c125861b85381e Mon Sep 17 00:00:00 2001 From: Philip Chee Date: Fri, 12 Sep 2014 00:30:37 +0800 Subject: [PATCH] Bug 1053166 Part 2 Remove trailing whitespace in blank lines and comments r=Neil DONTBUILD NPOTDB --- .../resources/content/autocomplete.xml | 80 +++++++++---------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/xpfe/components/autocomplete/resources/content/autocomplete.xml b/xpfe/components/autocomplete/resources/content/autocomplete.xml index bff000806fec..6f665c6b6f51 100644 --- a/xpfe/components/autocomplete/resources/content/autocomplete.xml +++ b/xpfe/components/autocomplete/resources/content/autocomplete.xml @@ -64,11 +64,11 @@ this.ifSetAttribute("maxrows", 5); this.ifSetAttribute("showpopup", true); this.ifSetAttribute("disableKeyNavigation", true); - + // initialize the search sessions if (this.hasAttribute("autocompletesearch")) this.initAutoCompleteSearch(); - + // hack to work around lack of bottom-up constructor calling if ("initialize" in this.popup) this.popup.initialize(); @@ -257,13 +257,13 @@ onset="this.setAttribute('pastetimeout', val); return val;" onget="var t = parseInt(this.getAttribute('pastetimeout')); return t ? t : 0;"/> - - - @@ -634,7 +634,7 @@ this.mFinishAfterSearch = false; this.mFireAfterSearch = false; if (this.mNeedToFinish && !this.disableAutoComplete) { - // set textbox value to either override value, or default search result + // set textbox value to either override value, or default search result var val = this.popup.overrideValue; if (val) { this.setTextValue(val); @@ -692,7 +692,7 @@ this.closePopup(); } - + this.mNeedToComplete = false; this.clearTimer(); @@ -721,7 +721,7 @@ this.mNeedToFinish = false; this.mNeedToComplete = false; - + this.closePopup(); this.currentSearchString = ""; @@ -782,7 +782,7 @@ var str = this.value; this.currentSearchString = str; this.popup.clearSelection(); - + var timeout = this.mIsPasting ? this.pasteTimeout : this.timeout; this.mAutoCompleteTimer = setTimeout(this.callListener, timeout, this, "startLookup"); ]]> @@ -793,9 +793,9 @@ @@ -944,17 +944,17 @@ this.openPopup(); return true; } - + this.userAction = "scrolling"; this.mNeedToComplete = false; - + var reverse = k == KeyEvent.DOM_VK_TAB && aEvent.shiftKey || k == KeyEvent.DOM_VK_UP || k == KeyEvent.DOM_VK_PAGE_UP; var page = k == KeyEvent.DOM_VK_PAGE_UP || k == KeyEvent.DOM_VK_PAGE_DOWN; var selected = this.popup.selectBy(reverse, page); - + // determine which value to place in the textbox this.ignoreInputEvent = true; if (selected != -1) { @@ -1155,7 +1155,7 @@ if (returned == false) noCancel = false; } - + return noCancel; ]]> @@ -1169,26 +1169,26 @@ mTree: null, mSelection: null, mRowCount: 0, - + clearResults: function() { var oldCount = this.mRowCount; this.mRowCount = 0; - + if (this.mTree) { this.mTree.rowCountChanged(0, -oldCount); this.mTree.scrollToRow(0); } }, - + updateResults: function(aRow, aCount) { this.mRowCount += aCount; - + if (this.mTree) this.mTree.rowCountChanged(aRow, aCount); }, - + ////////////////////////////////////////////////////////// // nsIAutoCompleteController interface @@ -1199,11 +1199,11 @@ ////////////////////////////////////////////////////////// // nsITreeView interface - + get rowCount() { return this.mRowCount; }, - + get selection() { return this.mSelection; }, @@ -1211,12 +1211,12 @@ set selection(aVal) { return this.mSelection = aVal; }, - + setTree: function(aTree) { this.mTree = aTree; }, - + getCellText: function(aRow, aCol) { for (var name in this.mTextbox.mSessions) { @@ -1281,7 +1281,7 @@ } return ""; }, - + getParentIndex: function(aRowIndex) { }, hasNextSibling: function(aRowIndex, aAfterIndex) { }, getLevel: function(aIndex) {}, @@ -1408,9 +1408,9 @@ var rows = this.maxRows || 6; if (!view.rowCount || (rows && view.rowCount < rows)) rows = view.rowCount; - + var height = rows * bx.rowHeight; - + if (height == 0) this.tree.setAttribute("collapsed", "true"); else {