Bug 1302470 Part 1: Remove trailing whitespace. r=mstange

MozReview-Commit-ID: 1vlEVEn07Qb

--HG--
extra : rebase_source : 9cd9f09370344a511e5653a5672882d6f4bb9d06
This commit is contained in:
Brad Werth 2016-11-09 13:46:17 -08:00
Родитель 9c223bd7d3
Коммит 22f0b9f51b
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -423,7 +423,7 @@ nsTypeAheadFind::FindItNow(nsIPresShell *aPresShell, bool aIsLinksOnly,
while (true) { // === Inner while loop: go through a single doc ===
mFind->Find(mTypeAheadBuffer.get(), mSearchRange, mStartPointRange,
mEndPointRange, getter_AddRefs(returnRange));
if (!returnRange)
break; // Nothing found in this doc, go to outer loop (try next doc)
@ -1009,18 +1009,18 @@ nsTypeAheadFind::Find(const nsAString& aSearchString, bool aLinksOnly,
return NS_OK;
}
bool atEnd = false;
bool atEnd = false;
if (mTypeAheadBuffer.Length()) {
const nsAString& oldStr = Substring(mTypeAheadBuffer, 0, mTypeAheadBuffer.Length());
const nsAString& newStr = Substring(aSearchString, 0, mTypeAheadBuffer.Length());
if (oldStr.Equals(newStr))
atEnd = true;
const nsAString& newStr2 = Substring(aSearchString, 0, aSearchString.Length());
const nsAString& oldStr2 = Substring(mTypeAheadBuffer, 0, aSearchString.Length());
if (oldStr2.Equals(newStr2))
atEnd = true;
if (!atEnd)
mStartFindRange = nullptr;
}

Просмотреть файл

@ -95,7 +95,7 @@ protected:
// If we destroy mSoundInterface before sound has played, it won't play
nsCOMPtr<nsISound> mSoundInterface;
bool mIsSoundInitialized;
// where selection was when user started the find
nsCOMPtr<nsIDOMRange> mStartFindRange;
nsCOMPtr<nsIDOMRange> mSearchRange;