Skip to content

Commit

Permalink
Backed out changeset 4b1afa9d2e99 (bug 1279708), because it landed on…
Browse files Browse the repository at this point in the history
… autoland earlier. r=backout DONTBUILD

MozReview-Commit-ID: AnDFEsAT5tC
  • Loading branch information
mikedeboer committed Sep 15, 2016
1 parent a0fcaa5 commit 047358b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions toolkit/modules/FinderHighlighter.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,6 @@ FinderHighlighter.prototype = {
dict.brightText = this._isColorBright(fontStyle.color);
}

if (data.findAgain)
dict.updateAllRanges = true;

if (!dict.visible)
this.show(window);
else
Expand Down Expand Up @@ -965,10 +962,10 @@ FinderHighlighter.prototype = {
const rectStyle = this._getStyleString(kModalStyles.maskRect,
dict.brightText ? kModalStyles.maskRectBrightText : []);
for (let [range, rects] of dict.modalHighlightRectsMap) {
if (dict.updateAllRanges)
rects = this._updateRangeRects(range);
if (this._checkOverlap(dict.currentFoundRange, range))
continue;
if (dict.updateAllRanges)
rects = this._updateRangeRects(range);
for (let rect of rects) {
maskContent.push(`<div xmlns="${kNSHTML}" style="${rectStyle}; top: ${rect.y}px;
left: ${rect.x}px; height: ${rect.height}px; width: ${rect.width}px;"></div>`);
Expand Down

0 comments on commit 047358b

Please sign in to comment.