Bug 1341275: Rm redundant check for size change in onSizeChanged. r=sebastian

onSizeChanged should only be called when the size actually changes. However,
I did notice weird behavior in the debugger where `formatImage` appeared to be
called twice from onSizeChanged, however, I was unable to reproduce this
behavior with log statements.

MozReview-Commit-ID: A5amGqTxv55

--HG--
extra : rebase_source : 1a53346d35102f1925941d3723c369f6b276ec5a
This commit is contained in:
Michael Comella 2017-07-14 14:52:34 -07:00
Родитель 68ec96d395
Коммит b3d8860452
1 изменённых файлов: 0 добавлений и 5 удалений

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

@ -101,11 +101,6 @@ public class FaviconView extends ImageView {
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
// No point rechecking the image if there hasn't really been any change.
if (w == oldw && h == oldh) {
return;
}
mBackgroundRect.right = w;
mBackgroundRect.bottom = h;