mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1470861: Trivially simplify some code in nsWebBrowserFind. r=mats
MozReview-Commit-ID: AaLVbxRbaCU
This commit is contained in:
parent
65c63991fb
commit
c87bf3439a
@ -720,15 +720,7 @@ nsWebBrowserFind::SearchInFrame(nsPIDOMWindowOuter* aWindow, bool aWrapping,
|
||||
|
||||
RefPtr<nsRange> foundRange;
|
||||
|
||||
// If !aWrapping, search from selection to end
|
||||
if (!aWrapping)
|
||||
rv = GetSearchLimits(searchRange, startPt, endPt, theDoc, sel, false);
|
||||
|
||||
// If aWrapping, search the part of the starting frame
|
||||
// up to the point where we left off.
|
||||
else
|
||||
rv = GetSearchLimits(searchRange, startPt, endPt, theDoc, sel, true);
|
||||
|
||||
rv = GetSearchLimits(searchRange, startPt, endPt, theDoc, sel, aWrapping);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
rv = find->Find(mSearchString.get(), searchRange, startPt, endPt,
|
||||
|
Loading…
Reference in New Issue
Block a user