mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1148235. Cleanup the state that we maintain in SimplifyOutwardByArea. r=ehsan
Useless assignment removed and move a duplicated assignment out of the condition. --HG-- extra : rebase_source : bc67a5ce78608dac1655f050dcf145e0f4fed676
This commit is contained in:
parent
f1944c7299
commit
2911685bf3
@ -336,23 +336,23 @@ void nsRegion::SimplifyOutwardByArea(uint32_t aThreshold)
|
||||
// merge the rects into tmpRect
|
||||
rect = MergeRects(topRects, topRectsEnd, bottomRects, bottomRectsEnd, tmpRect);
|
||||
|
||||
// set topRects to where the newly merged rects will be so that we use them
|
||||
// as our next set of topRects
|
||||
topRects = destRect;
|
||||
// copy the merged rects back into the destination
|
||||
topRectsEnd = CopyRow(destRect, tmpRect, rect);
|
||||
topRects = destRect;
|
||||
bottomRects = bottomRectsEnd;
|
||||
destRect = topRects;
|
||||
} else {
|
||||
// copy the unmerged rects
|
||||
destRect = CopyRow(destRect, topRects, topRectsEnd);
|
||||
|
||||
topRects = bottomRects;
|
||||
topRectsEnd = bottomRectsEnd;
|
||||
bottomRects = bottomRectsEnd;
|
||||
if (bottomRectsEnd == end) {
|
||||
// copy the last row when we are done
|
||||
topRectsEnd = CopyRow(destRect, topRects, topRectsEnd);
|
||||
}
|
||||
}
|
||||
bottomRects = bottomRectsEnd;
|
||||
} while (bottomRectsEnd != end);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user