зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
68ec96d395
Коммит
b3d8860452
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче