Backed out changeset 726e98cd071e (bug 1302470)

This commit is contained in:
Sebastian Hengst 2017-04-21 19:09:11 +02:00
parent 6784deba77
commit 4608be37d8
2 changed files with 1 additions and 4 deletions

View File

@ -1130,9 +1130,6 @@ FinderHighlighter.prototype = {
let DOMRect = window.DOMRect;
for (let [range, rectsAndTexts] of dict.modalHighlightRectsMap) {
if (!this.finder._fastFind.isRangeVisible(range, false))
continue;
if (dict.updateAllRanges)
rectsAndTexts = this._updateRangeRects(range);

View File

@ -590,7 +590,7 @@ this.FinderIterator = {
let range = window.document.createRange();
range.setStart(frameEl, 0);
range.setEnd(frameEl, 0);
if (!finder._fastFind.isRangeVisible(range, false))
if (!finder._fastFind.isRangeVisible(range, this._getDocShell(range), true))
continue;
// All conditions pass, so push the current frame and its children on the
// stack.